#2151 and #2166: added tests for application being unused + even more tests

This commit is contained in:
Czar Echavez
2024-01-10 11:58:36 +00:00
parent a4d372d3eb
commit c985b8793d
9 changed files with 82 additions and 18 deletions

View File

@@ -40,6 +40,9 @@ from primaite.simulator.network.hardware.base import Link, Node
class TestService(Service):
"""Test Service class"""
def describe_state(self) -> Dict:
return super().describe_state()
def __init__(self, **kwargs):
kwargs["name"] = "TestService"
kwargs["port"] = Port.HTTP
@@ -60,7 +63,7 @@ class TestApplication(Application):
super().__init__(**kwargs)
def describe_state(self) -> Dict:
pass
return super().describe_state()
@pytest.fixture(scope="function")