From e7488f3a3e40442f6a670de1c9aeef5691328685 Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Sun, 23 Jan 2022 02:26:53 +0530 Subject: [PATCH] added test badge, rename test to Tests from ubuntu and fix the Incomplete URL substring sanitization(or trying to) --- .github/workflows/unit_test.yml | 2 +- README.md | 1 + tests/test_availability_api.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 20544d9..a076b00 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: Ubuntu +name: Tests on: push: diff --git a/README.md b/README.md index 485c881..7901834 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@

+Unit Tests pypi Downloads GitHub lastest commit diff --git a/tests/test_availability_api.py b/tests/test_availability_api.py index a64c14f..3177061 100644 --- a/tests/test_availability_api.py +++ b/tests/test_availability_api.py @@ -30,7 +30,7 @@ def test_oldest(): oldest_timestamp = oldest.timestamp() assert abs(oldest_timestamp - now) > timedelta(days=8400) # More than 20 years assert availability_api.JSON["archived_snapshots"]["closest"]["available"] is True - assert "http://google.com" in repr(oldest) + assert repr(oldest).find("google.com") != -1 assert "1998" in str(oldest)