From 3d502ff9f6a1fce041250a60ac63f6bfd6a23ea7 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 5 Aug 2026 22:40:52 +0200 Subject: [PATCH] restore test_job_list from master (#1212) v4 inherited an old-base skipped stub; master implemented the real job-list test post-fork. v4 has the job-list command, so the real test passes. Kept v4's assert_helper/get_test_output_path and --workflow-mode. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01V7MdZEmd1GE8uSDTMyq34r --- tests/test_cli_job_manager.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/test_cli_job_manager.py b/tests/test_cli_job_manager.py index a08212f4..3c88231f 100644 --- a/tests/test_cli_job_manager.py +++ b/tests/test_cli_job_manager.py @@ -36,9 +36,21 @@ def before_each() -> None: init_jobs(get_test_jobs_directory()) -@pytest.mark.skip() def test_job_list() -> None: - pass + commands = [ sys.executable, 'facefusion.py', 'job-list', 'drafted', '--jobs-path', get_test_jobs_directory() ] + + assert subprocess.run(commands).returncode == 1 + + commands = [ sys.executable, 'facefusion.py', 'job-create', 'test-job-list', '--jobs-path', get_test_jobs_directory() ] + subprocess.run(commands) + + commands = [ sys.executable, 'facefusion.py', 'job-list', 'drafted', '--jobs-path', get_test_jobs_directory() ] + + assert subprocess.run(commands).returncode == 0 + + commands = [ sys.executable, 'facefusion.py', 'job-list', 'queued', '--jobs-path', get_test_jobs_directory() ] + + assert subprocess.run(commands).returncode == 1 def test_job_create() -> None: