diff --git a/test/conftest.py b/test/conftest.py index 51f2c85dcb7558f1bfbd2558c188c3d6306641c1..2fb5f1ea81a1c32bd117967e3516ef3fa7877ad4 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,20 +1,27 @@ import json import os import tempfile - import pytest - import brian_dashboard_manager @pytest.fixture -def data_config_filename(): - test_config_data = { - 'str-param': 'test data string', - 'int-param': -47 +def data_config(): + return { + "admin_username": "admin", + "admin_password": "admin", + "hostname": "localhost", + "listen_port": 3001, + "grafana_port": 3000, + "organizations": ['Testorg1', 'GÉANT Testorg2', 'NRENsTestorg3', 'General Public'], + "BRIAN_ENVIRONMENT": "test" } + + +@pytest.fixture +def data_config_filename(data_config): with tempfile.NamedTemporaryFile() as f: - f.write(json.dumps(test_config_data).encode('utf-8')) + f.write(json.dumps(data_config).encode('utf-8')) f.flush() yield f.name