Skip to content

Commit 163b773

Browse files
committed
test: fix ConfigManager signature and regex assertions
1 parent 0952729 commit 163b773

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/version_scanner/tests/unit/test_version_scanner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,11 @@ def test_scan_file_truncation_bug(tmp_path):
524524
from version_scanner import ConfigManager, scan_file
525525

526526
# Init config for 3.1
527-
config_manager = ConfigManager("python", "3.1")
528-
config_manager.load_config("regex_config.yaml")
527+
config_manager = ConfigManager("regex_config.yaml", "python", "3.1")
528+
rules = config_manager.load_config()
529529

530530
# It should not match anything because all strings are 3.10, not 3.1
531-
matches = scan_file(str(test_file), config_manager.rules)
531+
matches = scan_file(str(test_file), rules)
532532
assert len(matches) == 0, f"Expected 0 matches for 3.1 in 3.10 content, but got {len(matches)}: {matches}"
533533

534534

0 commit comments

Comments
 (0)