Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/main/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,4 +367,11 @@ def test_main_generates_correct_schema_file(project_dir, file_name, expected_fil
assert result.exit_code == 0
schema_path = project_dir / file_name

assert schema_path.read_text() == expected_file_path.read_text()
# normalise texts to account for a spelling change in graphql-core 3.2.5
def normalise(schema: str) -> str:
return schema.replace(" behaviour ", " behavior ")

actual = normalise(schema_path.read_text())
expected = normalise(expected_file_path.read_text())

assert actual == expected