Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Aug 8, 2024
1 parent 0610aa7 commit ead3a1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/scrape/test_crawler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import logging
from pathlib import Path

Expand Down Expand Up @@ -30,9 +31,7 @@ def test_scrape_crawl(shared_datadir):
assert crawl.get_link_abs_path() == expected_link_abs_path(root_path)

assert (root_path / "url_cache.json").is_file()
assert (root_path / "url_cache.json").read_text() == (
shared_datadir / "expected_url_cache.json"
).read_text()
assert json.loads((root_path / "url_cache.json").read_text()) == json.loads((shared_datadir / "expected_url_cache.json" ).read_text())


def test_recrawl_different_version(caplog, shared_datadir: Path):
Expand Down

0 comments on commit ead3a1e

Please sign in to comment.