From 8561f5cf28f4b31880cae6375ade24abace580c5 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 8 Nov 2023 11:53:46 +0000 Subject: [PATCH] Remove wrongly added test, actually disable windows on logfile test --- test_conf.py | 13 ------------- tests/runner/test_config.py | 7 +++++++ 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 test_conf.py diff --git a/test_conf.py b/test_conf.py deleted file mode 100644 index 9da6ed5..0000000 --- a/test_conf.py +++ /dev/null @@ -1,13 +0,0 @@ -from somd2.config import Config - - -def configure(inp): - conf = Config(**inp) - return conf - - -# c = configure({"pressure": "1 bar", "minimise": True, "extra_args": {"a": 1}}) -# print(c.equilibrate) - - -cnf = Config() diff --git a/tests/runner/test_config.py b/tests/runner/test_config.py index cd8529f..2463401 100644 --- a/tests/runner/test_config.py +++ b/tests/runner/test_config.py @@ -4,6 +4,9 @@ from somd2.config import Config from somd2.runner import Runner +import platform +import pytest + def test_dynamics_options(): """Validate that dynamics options are set correctly.""" @@ -70,6 +73,10 @@ def test_dynamics_options(): ) == d.integrator().__class__.__name__.lower().replace("integrator", "") +# Skip on windows due to file permission issues +@pytest.mark.skipif( + platform.system() == "Windows", reason="File permission issues on Windows" +) def test_logfile_creation(): # Test that the logfile is created by either the initialisation of the runner or of a config with tempfile.TemporaryDirectory() as tmpdir: