[GEMINI] Update test_commands.py to match dynamic competition name in suggested patterns output
This commit is contained in:
@@ -64,6 +64,10 @@ def test_basic_set_flag_format_original_option_cli():
|
|||||||
# We pass -o SKY-1111-000 and input "2" to choose the second suggested pattern
|
# We pass -o SKY-1111-000 and input "2" to choose the second suggested pattern
|
||||||
result = runner.invoke(basic_group, ["set-flag-format", "-o", "SKY-1111-000"], input="2\n")
|
result = runner.invoke(basic_group, ["set-flag-format", "-o", "SKY-1111-000"], input="2\n")
|
||||||
assert result.exit_code == 0
|
assert result.exit_code == 0
|
||||||
|
comp_name = original_config.get("Competition", {}).get("competition", "")
|
||||||
|
if comp_name:
|
||||||
|
assert f"Suggested regex patterns for competition {comp_name}:" in result.output
|
||||||
|
else:
|
||||||
assert "Suggested regex patterns:" in result.output
|
assert "Suggested regex patterns:" in result.output
|
||||||
assert "Select a pattern index" in result.output
|
assert "Select a pattern index" in result.output
|
||||||
assert "Flag format set to" in result.output
|
assert "Flag format set to" in result.output
|
||||||
|
|||||||
Reference in New Issue
Block a user