fix(ci): test

This commit is contained in:
Barrett Ruth 2025-09-19 21:08:19 -04:00
parent 01adf0a381
commit f148f77ec6
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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