From 93899f78f286ced4d5b495710414c132f3036cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Malinowski?= <56644812+stan-dot@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:57:43 +0100 Subject: [PATCH] Update tests/unit_tests/test_config.py Co-authored-by: Callum Forrester --- tests/unit_tests/test_config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit_tests/test_config.py b/tests/unit_tests/test_config.py index 1137157b0..bbec2f038 100644 --- a/tests/unit_tests/test_config.py +++ b/tests/unit_tests/test_config.py @@ -179,8 +179,7 @@ def test_config_yaml_parsed(): loaded_config = loader.load() # Assert that the loaded configuration matches the expected values - assert loaded_config.env.sources[0].kind == "dodal" - assert loaded_config.data_writing.visit_directory == "/dls/p38/data/2023/cm33874-1" + assert loaded_config == config_data.model_dump() # Clean up by removing the temporary file if desired os.remove(temp_yaml_file_path) # Uncomment if you want to delete the temp file