fix(ci): test
This commit is contained in:
parent
01adf0a381
commit
f148f77ec6
2 changed files with 3 additions and 2 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue