From f148f77ec6d4896e80936d6e023b79b8910e37d8 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 19 Sep 2025 21:08:19 -0400 Subject: [PATCH] fix(ci): test --- .github/workflows/test.yml | 2 +- spec/scraper_spec.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebee51a..10b94e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,4 +61,4 @@ jobs: - name: Install dependencies with pytest run: uv sync --dev - name: Run Python tests - run: uv run pytest tests/scrapers/ -v + run: PYTHONPATH=. uv run pytest tests/scrapers/ -v diff --git a/spec/scraper_spec.lua b/spec/scraper_spec.lua index aacf29a..a06d97e 100644 --- a/spec/scraper_spec.lua +++ b/spec/scraper_spec.lua @@ -13,6 +13,7 @@ describe('cp.scrape', function() return nil end, set_contest_data = function() end, + set_test_cases = function() end, } mock_system_calls = {} @@ -31,7 +32,7 @@ describe('cp.scrape', function() result.stdout = '{"success": true, "problems": [{"id": "a", "name": "Test Problem"}]}' elseif vim.tbl_contains(cmd, 'tests') then result.stdout = - '{"success": true, "tests": [{"input": "1 2", "expected": "3"}], "url": "https://example.com"}' + '{"success": true, "tests": [{"input": "1 2", "expected": "3"}], "url": "https://example.com", "timeout_ms": 2000, "memory_mb": 256.0}' end end