[GEMINI] Refactor test suite structure for new helpers and config modules
This commit is contained in:
@@ -66,7 +66,7 @@ def test_flag_detector_stream_persistence():
|
||||
"""
|
||||
from io import StringIO
|
||||
from ctf.main import FlagDetectorStream
|
||||
from ctf.utils import load_config, write_config
|
||||
from ctf.config import load_config, write_config
|
||||
from pathlib import Path
|
||||
|
||||
config_file = Path("/home/venus/code/ctf/config.toml")
|
||||
@@ -89,7 +89,7 @@ def test_flag_cmd_cli():
|
||||
"""
|
||||
from click.testing import CliRunner
|
||||
from ctf.main import cli
|
||||
from ctf.utils import load_config, write_config
|
||||
from ctf.config import load_config, write_config
|
||||
from pathlib import Path
|
||||
|
||||
config_file = Path("/home/venus/code/ctf/config.toml")
|
||||
@@ -123,7 +123,7 @@ def test_flag_cmd_exemption(capsys):
|
||||
Verifies that running ctf flag is exempted from triggering the stdout flag warning box.
|
||||
"""
|
||||
from ctf.main import main
|
||||
from ctf.utils import load_config, write_config
|
||||
from ctf.config import load_config, write_config
|
||||
from pathlib import Path
|
||||
import sys
|
||||
from unittest.mock import patch
|
||||
|
||||
Reference in New Issue
Block a user