We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25725e3 commit 26b0b17Copy full SHA for 26b0b17
tests/conftest.py
@@ -1,4 +1,5 @@
1
import json
2
+from configparser import ConfigParser
3
4
import pytest
5
from sqlmodel import Session
@@ -21,6 +22,20 @@ def start_postgres():
21
22
murfey_db.commit()
23
24
25
+@pytest.fixture()
26
+def mock_client_configuration() -> ConfigParser:
27
+ """
28
+ Returns the client-side configuration file as a pre-loaded ConfigParser object.
29
30
+ config = ConfigParser()
31
+ config["Murfey"] = {
32
+ "instrument_name": "murfey",
33
+ "server": "http://0.0.0.0:8000",
34
+ "token": "pneumonoultramicroscopicsilicovolcanoconiosis",
35
+ }
36
+ return config
37
+
38
39
@pytest.fixture()
40
def mock_security_configuration(tmp_path):
41
config_file = tmp_path / mock_security_config_name
0 commit comments