fix import error

This commit is contained in:
Akash Mahanty
2021-01-26 11:53:01 +05:30
parent acebfabc3e
commit 31e3eaeab8

View File

@@ -14,14 +14,14 @@ from waybackpy.utils import (
_check_match_type, _check_match_type,
_check_collapses, _check_collapses,
_check_filters, _check_filters,
_ts, _timestamp_manager,
) )
def test_ts(): def test_timestamp_manager():
timestamp = True timestamp = True
data = {} data = {}
assert _ts(timestamp, data) assert _timestamp_manager(timestamp, data)
data = """ data = """
{"archived_snapshots": {"closest": {"timestamp": "20210109155628", "available": true, "status": "200", "url": "http://web.archive.org/web/20210109155628/https://www.google.com/"}}, "url": "https://www.google.com/"} {"archived_snapshots": {"closest": {"timestamp": "20210109155628", "available": true, "status": "200", "url": "http://web.archive.org/web/20210109155628/https://www.google.com/"}}, "url": "https://www.google.com/"}