mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-29 23:55:23 +08:00
Fix pytests
This commit is contained in:
1
.github/workflows/unittest.yml
vendored
1
.github/workflows/unittest.yml
vendored
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user