#2705 Minor comment and name changes to applications
This commit is contained in:
@@ -46,7 +46,7 @@ class Application(IOSoftware):
|
|||||||
"""
|
"""
|
||||||
Register an application type.
|
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
|
:type identifier: str
|
||||||
:raises ValueError: When attempting to register an application with a name that is already allocated.
|
:raises ValueError: When attempting to register an application with a name that is already allocated.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class DummyApplication(Application, identifier="DummyApplication"):
|
|||||||
"""Test Application class"""
|
"""Test Application class"""
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
kwargs["name"] = "TestApplication"
|
kwargs["name"] = "DummyApplication"
|
||||||
kwargs["port"] = Port.HTTP
|
kwargs["port"] = Port.HTTP
|
||||||
kwargs["protocol"] = IPProtocol.TCP
|
kwargs["protocol"] = IPProtocol.TCP
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
@@ -87,7 +87,7 @@ def service_class():
|
|||||||
@pytest.fixture(scope="function")
|
@pytest.fixture(scope="function")
|
||||||
def application(file_system) -> DummyApplication:
|
def application(file_system) -> DummyApplication:
|
||||||
return 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")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user