added test badge, rename test to Tests from ubuntu and fix the Incomplete URL substring sanitization(or trying to)

This commit is contained in:
Akash Mahanty 2022-01-23 02:26:53 +05:30
parent aed75ad1db
commit e7488f3a3e
3 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -7,6 +7,7 @@
</div>
<p align="center">
<a href="https://github.com/akamhy/waybackpy/actions?query=workflow%3ATests"><img alt="Unit Tests" src="https://github.com/akamhy/waybackpy/workflows/Tests/badge.svg"></a>
<a href="https://pypi.org/project/waybackpy/"><img alt="pypi" src="https://img.shields.io/pypi/v/waybackpy.svg"></a>
<a href="https://pepy.tech/project/waybackpy?versions=2*&versions=1*&versions=3*"><img alt="Downloads" src="https://pepy.tech/badge/waybackpy/month"></a>
<a href="https://github.com/akamhy/waybackpy/commits/master"><img alt="GitHub lastest commit" src="https://img.shields.io/github/last-commit/akamhy/waybackpy?color=blue&style=flat-square"></a>

View File

@ -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)