mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-23 08:54:24 +01:00
* Rearrange tests into unit/integration/challenge categories * Fix linting + `tests.challenges` imports * Fix obscured duplicate test in test_url_validation.py * Move VCR conftest to tests.vcr * Specify tests to run & their order (unit -> integration -> challenges) in CI * Fail Docker CI when tests fail * Fix import & linting errors in tests * Fix `get_text_summary` * Fix linting errors * Clean up pytest args in CI * Remove bogus tests from GoCodeo
24 lines
598 B
Python
24 lines
598 B
Python
from typing import Optional
|
|
|
|
|
|
class Challenge:
|
|
BEAT_CHALLENGES = False
|
|
|
|
def __init__(
|
|
self,
|
|
name: str,
|
|
category: str,
|
|
max_level: int,
|
|
is_new_challenge: bool,
|
|
max_level_beaten: Optional[int],
|
|
level_to_run: Optional[int] = None,
|
|
) -> None:
|
|
self.name = name
|
|
self.category = category
|
|
self.max_level_beaten = max_level_beaten
|
|
self.max_level = max_level
|
|
self.succeeded = False
|
|
self.skipped = False
|
|
self.level_to_run = level_to_run
|
|
self.is_new_challenge = is_new_challenge
|