#2705 Minor comment and name changes to applications

This commit is contained in:
Marek Wolan
2024-07-01 13:21:08 +01:00
parent 1ebeb27c53
commit 655bc04a42
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ class Application(IOSoftware):
"""
Register an application type.
:param identifier: Uniquely specifies an application class by name.
:param identifier: Uniquely specifies an application class by name. Used for finding items by config.
:type identifier: str
:raises ValueError: When attempting to register an application with a name that is already allocated.
"""

View File

@@ -55,7 +55,7 @@ class DummyApplication(Application, identifier="DummyApplication"):
"""Test Application class"""
def __init__(self, **kwargs):
kwargs["name"] = "TestApplication"
kwargs["name"] = "DummyApplication"
kwargs["port"] = Port.HTTP
kwargs["protocol"] = IPProtocol.TCP
super().__init__(**kwargs)
@@ -87,7 +87,7 @@ def service_class():
@pytest.fixture(scope="function")
def application(file_system) -> DummyApplication:
return DummyApplication(
name="TestApplication", port=Port.ARP, file_system=file_system, sys_log=SysLog(hostname="test_application")
name="DummyApplication", port=Port.ARP, file_system=file_system, sys_log=SysLog(hostname="dummy_application")
)