Skip to content

Testresponse

TestResponse

Attributes

client module-attribute

client = myClient(ip=ip, port=port, supported_json=supported_json, reload=False)

ip module-attribute

ip = '172.21.148.101'

json_handler module-attribute

json_handler = JsonFileHandler(supported_json)

port module-attribute

port = 9999

supported_json module-attribute

supported_json = 'supported.json'

web_server module-attribute

web_server = ServerSpawner(ip, port, supported_json)

Classes

TestResponse

Functions
test_get_status
test_get_status(capsys)
Source code in dod/TestResponse.py
def test_get_status(self, capsys):
    web_server.launch_web_server()
    # TEST Status
    resp = client.get_status()
    web_server.kill_web_server()
    assert resp.RESULTS == json_handler.get_endpoint_data("/DoD/get/Status")