From 1af3f878f6c5804ecfefede8e06edb00d9e2c8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=AFs=20F=C3=A9d=C3=A9rico?= Date: Tue, 16 Jan 2024 20:26:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20ENHSP=20fails=20more=20on=20Mine?= =?UTF-8?q?HCraft=20now=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/examples/minecraft/test_behaviors.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/examples/minecraft/test_behaviors.py b/tests/examples/minecraft/test_behaviors.py index 1bce1835..1dfda383 100644 --- a/tests/examples/minecraft/test_behaviors.py +++ b/tests/examples/minecraft/test_behaviors.py @@ -10,9 +10,8 @@ from hcraft.elements import Item from hcraft.behaviors.utils import get_items_in_graph, get_zones_items_in_graph -from hcraft.examples.minecraft.env import MineHcraftEnv +from hcraft.examples.minecraft.env import ALL_ITEMS, MineHcraftEnv from hcraft.examples.minecraft.items import ( - MC_FINDABLE_ITEMS, OPEN_NETHER_PORTAL, STICK, WOOD_PLANK, @@ -73,6 +72,11 @@ def test_solving_behaviors(): KNOWN_TO_FAIL_ITEM_ENHSP = [ + "reeds", + "wood_pickaxe", + "wood_axe", + "cobblestone", + "coal", "leather", "book", "flint_and_steel", @@ -105,7 +109,7 @@ def test_solving_behaviors(): @pytest.mark.slow -@pytest.mark.parametrize("item", [item.item.name for item in MC_FINDABLE_ITEMS]) +@pytest.mark.parametrize("item", [item.name for item in ALL_ITEMS]) def test_get_all_items_pddl(item: str): """All items should be gettable by planning behavior.""" up = pytest.importorskip("unified_planning")