test: update tests to support unanchored and wildcard regex options

This commit is contained in:
venus
2026-07-17 02:33:48 -05:00
parent f2b349c42d
commit 861e1b8e83
2 changed files with 28 additions and 19 deletions

View File

@@ -71,7 +71,7 @@ def test_basic_set_flag_format_original_option_cli():
# Verify it was written to config.toml
updated_config = load_config(str(config_file))
selected_pattern = updated_config["Competition"]["flag_format"]
assert selected_pattern.startswith("^") and selected_pattern.endswith("$")
assert len(selected_pattern) > 0
finally:
# Restore original config
from ctf.utils import write_config