diff --git a/tests/demo.mph b/tests/demo.mph new file mode 100644 index 0000000..75db552 Binary files /dev/null and b/tests/demo.mph differ diff --git a/tests/test_client.py b/tests/test_client.py index 9c1e605..4cd794c 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -15,7 +15,7 @@ ######################################## client = None model = None -demo = Path(__file__).resolve().parent.parent/'demos'/'capacitor.mph' +demo = Path(__file__).resolve().parent/'demo.mph' ######################################## @@ -63,7 +63,7 @@ def test_repr(): def test_contains(): assert model in client - assert 'capacitor' in client + assert 'demo' in client assert 'empty' in client assert 'non-existing' not in client @@ -74,7 +74,7 @@ def test_iter(): def test_truediv(): - assert client/'capacitor' == model + assert client/'demo' == model with logging_disabled(): with raises(ValueError): client/'non-existing' diff --git a/tests/test_node.py b/tests/test_node.py index abfe0ea..01d9008 100644 --- a/tests/test_node.py +++ b/tests/test_node.py @@ -99,7 +99,7 @@ def test_tag(): if not client.port: # Skip test in client-server mode where it's fairly slow. here = Path(__file__).resolve().parent - demo = client.load(here.parent/'demos'/'capacitor.mph') + demo = client.load(here/'demo.mph') demo.solve() root = Node(model, '') compare_tags(root, demo)