mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
test: Fix test to reflect new API changes
This commit is contained in:
parent
a6940092bb
commit
bca6a06f60
1 changed files with 2 additions and 2 deletions
|
@ -25,9 +25,9 @@ def test_add_link(tmp_path, process):
|
||||||
|
|
||||||
with open(archived_item_path / "index.json", "r") as f:
|
with open(archived_item_path / "index.json", "r") as f:
|
||||||
output_json = json.load(f)
|
output_json = json.load(f)
|
||||||
assert "IANA — IANA-managed Reserved Domains" == output_json['history']['title'][0]['output']
|
assert "Example Domain" == output_json['history']['title'][0]['output']
|
||||||
|
|
||||||
with open(tmp_path / "index.html", "r") as f:
|
with open(tmp_path / "index.html", "r") as f:
|
||||||
output_html = f.read()
|
output_html = f.read()
|
||||||
assert "IANA — IANA-managed Reserved Domains" in output_html
|
assert "Example Domain" in output_html
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue