Skip to content

Commit

Permalink
Add regression test for bug #256
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jan 19, 2024
1 parent 5ca5a95 commit 2f06230
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ def test_get_client_settings_returns_client_settings_object(tmp_path):
)
}

# Regression test for #256
assert config_dict["tool"]["ariadne-codegen"]["scalars"] == {
"ID": {
"type": "str",
"parse": "parse_id",
"serialize": "serialize_id",
"import": ".custom_scalars",
},
}


def test_get_client_settings_without_section_raises_missing_configuration_exception():
config_dict = {"invalid-section": {"schema_path": "."}}
Expand Down

0 comments on commit 2f06230

Please sign in to comment.