Fix pytests

This commit is contained in:
EstrellaXD
2023-03-06 14:19:41 +08:00
parent e1e6c9a579
commit 13e9437eb9
2 changed files with 3 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ jobs:
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest
mkdir config
- name: Test
run: pytest test/test_raw_parser.py

View File

@@ -60,9 +60,9 @@ class Settings:
try:
from .version import VERSION
if os.path.isdir("config"):
CONFIG_PATH = ("config/config.json")
CONFIG_PATH = "config/config.json"
else:
CONFIG_PATH = DEFAULT_SETTINGS
CONFIG_PATH = None
except ImportError:
VERSION = "DEV_VERSION"
CONFIG_PATH = "config/config_dev.json"