Skip to content

Commit

Permalink
Merge branch 'master' into paperfix/shang
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisFederico committed Oct 6, 2024
2 parents f746e25 + 805c671 commit 08bc1fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/planning/test_planning.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, Type
from typing import Optional, Type, List
import warnings
import pytest
from hcraft.env import HcraftEnv
Expand All @@ -23,6 +23,9 @@ def planning_fixture() -> "PlanningFixture":


class PlanningFixture:
def __init__(self) -> None:
pytest.importorskip("unified_planning")

def given_env(self, env: HcraftEnv) -> None:
self.env = env

Expand All @@ -41,7 +44,7 @@ def then_warning_should_be_given(


def _warning_in_records(
warning_records: list[warnings.WarningMessage],
warning_records: List[warnings.WarningMessage],
warning_type: Type[Warning],
match: Optional[str],
) -> bool:
Expand Down

0 comments on commit 08bc1fb

Please sign in to comment.