Skip to content

Commit

Permalink
Revert "specify file encodings in tests"
Browse files Browse the repository at this point in the history
This reverts commit bd38c30.
  • Loading branch information
fabianegli committed Nov 29, 2024
1 parent b64284d commit eb8e1a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@


def test_robots_txt_creation():
robots_json = json.loads(Path("test_files/robots.json").read_text(encoding="utf-8"))
robots_json = json.loads(Path("test_files/robots.json").read_text())
robots_txt = json_to_txt(robots_json)
assert Path("test_files/robots.txt").read_text(encoding="utf-8") == robots_txt
assert Path("test_files/robots.txt").read_text() == robots_txt


def test_table_of_bot_metrices_md():
robots_json = json.loads(Path("test_files/robots.json").read_text(encoding="utf-8"))
robots_json = json.loads(Path("test_files/robots.json").read_text())
robots_table = json_to_table(robots_json)
assert Path("test_files/table-of-bot-metrics.md").read_text(encoding="utf-8") == robots_table
assert Path("test_files/table-of-bot-metrics.md").read_text() == robots_table

0 comments on commit eb8e1a4

Please sign in to comment.