From d5a6777bb305055590c2bf7644921327a1acc428 Mon Sep 17 00:00:00 2001
From: Bjarke Madsen <bjarke.madsen@geant.org>
Date: Mon, 25 Jan 2021 17:56:10 +0100
Subject: [PATCH] test config

---
 test/conftest.py | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/test/conftest.py b/test/conftest.py
index 51f2c85..2fb5f1e 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
 
-- 
GitLab