2024-10-07 15:40:18 +00:00
|
|
|
import pytest
|
2024-10-11 08:08:39 +00:00
|
|
|
|
2024-10-07 15:40:18 +00:00
|
|
|
|
|
|
|
@pytest.mark.create_account
|
|
|
|
@pytest.mark.rpc
|
2024-10-23 19:48:33 +00:00
|
|
|
class TestInitialiseApp:
|
2024-10-07 15:40:18 +00:00
|
|
|
|
|
|
|
@pytest.mark.init
|
|
|
|
def test_init_app(self, init_status_backend):
|
|
|
|
# this test is going to fail on every call except first since status-backend will be already initialized
|
|
|
|
|
|
|
|
backend_client = init_status_backend
|
|
|
|
assert backend_client is not None
|
|
|
|
mediaserver_started = backend_client.wait_for_signal(
|
|
|
|
"mediaserver.started")
|
|
|
|
|
|
|
|
port = mediaserver_started['event']['port']
|
|
|
|
assert type(port) is int, f"Port is not an integer, found {type(port)}"
|
|
|
|
|
|
|
|
backend_client.wait_for_signal("node.started")
|
|
|
|
backend_client.wait_for_signal("node.ready")
|
|
|
|
backend_client.wait_for_signal("node.login")
|