[crawler]
This commit is contained in:
12
tests/test_config_loader.py
Normal file
12
tests/test_config_loader.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
from crawler_platform.app.config.loader import load_project_config
|
||||
|
||||
|
||||
def test_load_perfume_config():
|
||||
config = load_project_config(Path("configs/perfume_subscription.yaml"))
|
||||
|
||||
assert config.project_name == "perfume_subscription"
|
||||
assert config.domain == "perfume"
|
||||
assert config.source_by_name("official_brand_site").trust_level == 0.95
|
||||
|
||||
Reference in New Issue
Block a user