Skip to content
Snippets Groups Projects
Commit d5a6777b authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

test config

parent 64f4a15e
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment