Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#40: Moved Config data model from SLC-CI-Setup to SLC-CI #41

Merged
merged 8 commits into from
Jul 4, 2023
Prev Previous commit
Replace deprecated pydantic json function with model_dump_json
  • Loading branch information
tkilias committed Jul 4, 2023
commit 496aff5ae2ed2c150c03cb30f7f64af80213a0c0
2 changes: 1 addition & 1 deletion test/unit_tests/test_config_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def expected_config() -> Config:


def test_serialization(expected_config, expected_json_config):
actual_json = expected_config.json(indent=4)
actual_json = expected_config.model_dump_json(indent=4)
assert actual_json == expected_json_config


Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/test_config_data_model_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_using_generated_module(tmp_path, expected_json_config):
generate_config_data_model(config_data_model_file)
module = load_module(config_data_model_file)
config = create_config(module)
actual_json = config.json(indent=4)
actual_json = config.model_dump_json(indent=4)
assert actual_json == expected_json_config


Expand Down