Skip to content
Snippets Groups Projects
Commit cebc78aa authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

fix tests

parent 7d09f26c
No related branches found
No related tags found
3 merge requests!38Rename log related variables,!37Update log names and variable names,!29Restructure log location
Pipeline #370229 passed
......@@ -14,7 +14,7 @@ mod = importlib.import_module("mpsd-software-environment")
# set loglevel to debug - useful for understanding problems.
# (if the tests pass, pytest doesn't show any output)
mod.set_up_logging(loglevel="debug", filename="tests.log")
mod.set_up_logging(loglevel="debug", file_path="tests.log")
logging.debug(f"We have set up logging from {__file__}")
......@@ -349,7 +349,7 @@ def test_metadata_logging(tmp_path):
# Test that the metadata is logged correctly
filename = tmp_path / "test-metadata.log"
print(f"Writing to {filename}")
mod.set_up_logging(loglevel="debug", filename=filename)
mod.set_up_logging(loglevel="debug", file_path=filename)
# our test data
keys = ["important_key", "important_key2"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment