From 1fe963ea1b9a735be2f7e0513ea4f030a05e2c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Sch=C3=B6nfeldt?= Date: Thu, 14 Dec 2023 16:02:12 +0100 Subject: [PATCH] Test Node input check The error was not tested for because an error was risen before. --- tests/test_network_classes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_network_classes.py b/tests/test_network_classes.py index 0a9c18f..5c7f782 100644 --- a/tests/test_network_classes.py +++ b/tests/test_network_classes.py @@ -248,6 +248,8 @@ def test_entity_input_output_type_assertions(self): """ with pytest.raises(ValueError): Node("An entity with an output", outputs={"Not a Node": "A Flow"}) + + with pytest.raises(ValueError): Node("An entity with an input", inputs={"Not a Node": "A Flow"}) def test_node_label_without_private_attribute(self):