fix(ci): fix ruff lint
This commit is contained in:
parent
db391da52c
commit
3b768cc6c4
3 changed files with 19 additions and 9 deletions
|
|
@ -135,17 +135,17 @@ class TestScraperInterfaceCompliance:
|
|||
|
||||
# Test metadata error format
|
||||
result = scraper.scrape_contest_metadata("test")
|
||||
assert result.success == False
|
||||
assert not result.success
|
||||
assert result.error.startswith(f"{platform_name}: ")
|
||||
|
||||
# Test problem tests error format
|
||||
result = scraper.scrape_problem_tests("test", "A")
|
||||
assert result.success == False
|
||||
assert not result.success
|
||||
assert result.error.startswith(f"{platform_name}: ")
|
||||
|
||||
# Test contest list error format
|
||||
result = scraper.scrape_contest_list()
|
||||
assert result.success == False
|
||||
assert not result.success
|
||||
assert result.error.startswith(f"{platform_name}: ")
|
||||
|
||||
@pytest.mark.parametrize("scraper_class", ALL_SCRAPER_CLASSES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue