install as service
This commit is contained in:
@@ -8,6 +8,7 @@ def test_yaml_config_is_loaded_and_relative_paths_are_resolved(tmp_path):
|
||||
server:
|
||||
host: 127.0.0.1
|
||||
port: 12345
|
||||
threads: 6
|
||||
url_prefix: weather/
|
||||
storage:
|
||||
rrd_folder: data
|
||||
@@ -27,6 +28,7 @@ modules:
|
||||
config = load_config(config_file)
|
||||
assert config["HOST"] == "127.0.0.1"
|
||||
assert config["PORT"] == 12345
|
||||
assert config["THREADS"] == 6
|
||||
assert config["URL_PREFIX"] == "/weather"
|
||||
assert config["RRD_FOLDER"] == tmp_path / "data"
|
||||
assert config["LOG_FILE"] == tmp_path / "logs/service.log"
|
||||
|
||||
Reference in New Issue
Block a user