From 41f1d4124a5b057996d77851eb0da54262f8772c Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 19 Sep 2025 00:33:21 -0400 Subject: [PATCH] fix(ci): add contest to mock --- spec/test_panel_spec.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/test_panel_spec.lua b/spec/test_panel_spec.lua index 48557d7..5e5db07 100644 --- a/spec/test_panel_spec.lua +++ b/spec/test_panel_spec.lua @@ -72,10 +72,16 @@ describe('cp test panel', function() package.loaded['cp.test'] = mock_test_module mock_problem_module = { - create_context = function() + create_context = function(contest, contest_id, problem_id, config, language) return { + contest = contest or 'atcoder', + contest_id = contest_id or 'abc123', + problem_id = problem_id or 'a', source_file = 'test.cpp', binary_file = 'build/test.run', + input_file = 'io/test.cpin', + output_file = 'io/test.cpout', + expected_file = 'io/test.expected', problem_name = 'test', } end,