Spaces:
Configuration error
Configuration error
Download evaluation/integration_tests/tests/base.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/evaluation/integration_tests/tests/base.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/evaluation/integration_tests/tests/base.py
-
curl -L -o base.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/evaluation/integration_tests/tests/base.py
775 Bytes
| from abc import ABC, abstractmethod | |
| from pydantic import BaseModel | |
| from openhands.events.event import Event | |
| from openhands.runtime.base import Runtime | |
| class TestResult(BaseModel): | |
| success: bool | |
| reason: str | None = None | |
| class BaseIntegrationTest(ABC): | |
| """Base class for integration tests.""" | |
| INSTRUCTION: str | |
| def initialize_runtime(cls, runtime: Runtime) -> None: | |
| """Initialize the runtime for the test to run.""" | |
| pass | |
| def verify_result(cls, runtime: Runtime, histories: list[Event]) -> TestResult: | |
| """Verify the result of the test. | |
| This method will be called after the agent performs the task on the runtime. | |
| """ | |
| pass | |