diff --git a/app/tests/log/test.txt b/app/tests/log/test.txt new file mode 100644 index 0000000..d7c6d5e --- /dev/null +++ b/app/tests/log/test.txt @@ -0,0 +1,19 @@ +2025-04-30 00:01:23 INFO | root | Server "proxy - unknown" will be started +2025-04-30 00:01:23 INFO | root | current dir: /Users/sallius/tsun/tsun-gen3-proxy +2025-04-30 00:01:23 INFO | root | config_path: ./config/ +2025-04-30 00:01:23 INFO | root | json_config: None +2025-04-30 00:01:23 INFO | root | toml_config: None +2025-04-30 00:01:23 INFO | root | trans_path: ../translations/ +2025-04-30 00:01:23 INFO | root | rel_urls: False +2025-04-30 00:01:23 INFO | root | log_path: ./log/ +2025-04-30 00:01:23 INFO | root | log_backups: unlimited +2025-04-30 00:01:23 INFO | root | LOG_LVL : None +2025-04-30 00:01:23 INFO | root | ****** +2025-04-30 00:01:23 INFO | root | Read from /Users/sallius/tsun/tsun-gen3-proxy/app/src/cnf/default_config.toml => ok +2025-04-30 00:01:23 INFO | root | Read from environment => ok +2025-04-30 00:01:23 INFO | root | Read from ./config/config.json => n/a +2025-04-30 00:01:23 INFO | root | Read from ./config/config.toml => n/a +2025-04-30 00:01:23 INFO | root | ****** +2025-04-30 00:01:23 INFO | root | listen on port: 5005 for inverters +2025-04-30 00:01:23 INFO | root | listen on port: 10000 for inverters +2025-04-30 00:01:23 INFO | root | Start Quart \ No newline at end of file diff --git a/app/tests/test_web_route.py b/app/tests/test_web_route.py index e599767..9b36649 100644 --- a/app/tests/test_web_route.py +++ b/app/tests/test_web_route.py @@ -186,7 +186,7 @@ async def test_send_file(client, config_conn): """Test the send-file route.""" _ = config_conn assert Config.log_path == 'app/tests/log/' - response = await client.get('/send-file/test.log') + response = await client.get('/send-file/test.txt') assert response.status_code == 200