Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Jan 20, 2025
1 parent 2cad23b commit 192428a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit_tests/test_search_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ def test_custom_modifications():
@patch("alphadia.search_step.SearchStep._load_default_config")
def test_initializes_with_default_config(mock_load_default_config):
"""Test that the config is initialized with default values."""
config = Config({"key1": "value1", "key2": "value2"}, "default")
mock_load_default_config.return_value = deepcopy(config)
config = Config(
{"key1": "value1", "key2": "value2"}, "default"
) # not using a mock here as working with the real object is much simpler
mock_load_default_config.return_value = deepcopy(
config
) # copy required here as we want to compare changes to a mutable object below

# when
result = SearchStep._init_config(None, None, None, "/output")
Expand Down

0 comments on commit 192428a

Please sign in to comment.