mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-12 05:57:45 +00:00
Revert "specify file encodings in tests"
This reverts commit bd38c30194
.
This commit is contained in:
parent
b64284d684
commit
eb8e1a49b5
1 changed files with 4 additions and 4 deletions
|
@ -10,12 +10,12 @@ from dark_visitors import json_to_txt, json_to_table
|
||||||
|
|
||||||
|
|
||||||
def test_robots_txt_creation():
|
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)
|
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():
|
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)
|
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
|
||||||
|
|
Loading…
Reference in a new issue