Skip to content

Commit

Permalink
Removing caplog assertion for test_update_config
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-rse committed May 26, 2023
1 parent 1120ab0 commit dfba1ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_utils.py
Expand Up @@ -15,14 +15,13 @@ def test_convert_path(tmpdir) -> None:
assert tmpdir == converted_path


def test_update_config(caplog) -> None:
def test_update_config() -> None:
"""Test updating configuration."""
SAMPLE_CONFIG = {"input_file": "there", "masses_file": "something", "output_dir": "here"}
NEW_VALUES = {"output_dir": "something new"}
updated_config = update_config(SAMPLE_CONFIG, NEW_VALUES)

assert isinstance(updated_config, dict)
assert "Updated config config[output_dir] : here > something new" in caplog.text
assert updated_config["output_dir"] == Path("something new")


Expand Down

0 comments on commit dfba1ac

Please sign in to comment.