Skip to content

Commit 73eee3c

Browse files
committed
Configure tox
1 parent 5e4789d commit 73eee3c

11 files changed

+125
-8
lines changed

poetry.lock

Lines changed: 97 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ filelock = "*"
1818
frozendict = "*"
1919
pyyaml = "*"
2020
mergedeep = "^1.3.4"
21+
tox = "^4.24.2"
2122

2223

2324
[tool.poetry.group.dev.dependencies]

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty

tests/test_apply_effects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from helpers import get_action
21
from pddl.logic import Predicate, constants, variables
32

43
from genfond.ground import ground
54
from genfond.state_space_generator import apply_action_effects, apply_effects
65

6+
from .helpers import get_action
7+
78

89
def test_apply_effects_simple_blocks(simple_blocks):
910
domain, problem = simple_blocks

tests/test_check_precondition.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from helpers import get_action
21
from pddl.logic import constants
32

43
from genfond.ground import ground
54
from genfond.state_space_generator import check_formula
65

6+
from .helpers import get_action
7+
78

89
def test_precondition_check_simple_blocks(simple_blocks):
910
domain, problem = simple_blocks

tests/test_feature_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import re
22

33
import pytest
4-
from helpers import get_action
54
from pddl.logic import Predicate, constants
65

76
from genfond.config_handler import ConfigHandler
87
from genfond.feature_generator import FeaturePool
98
from genfond.ground import ground
109
from genfond.state_space_generator import apply_action_effects, check_formula
1110

11+
from .helpers import get_action
12+
1213

1314
def test_generate_features_simple_blocks(simple_blocks):
1415
domain, problem = simple_blocks

tests/test_generate_state_space.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from helpers import get_action
21
from pddl.logic import Predicate, constants
32

43
from genfond.ground import ground
54
from genfond.state_space_generator import apply_action_effects, generate_state_space
65

6+
from .helpers import get_action
7+
78

89
def test_generate_state_space_simple_blocks(simple_blocks):
910
domain, problem = simple_blocks

tests/test_generate_state_space_numeric.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
from helpers import get_action
21
from pddl.logic import Constant
32
from pddl.logic.functions import NumericFunction
43

54
from genfond.ground import ground
65
from genfond.state_space_generator import apply_action_effects, eval_function_term, generate_state_space
76

7+
from .helpers import get_action
8+
89

910
def test_generate_state_space_childsnack(childsnack):
1011
domain, problem = childsnack

tests/test_ground.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from helpers import get_action
21
from pddl.action import Action
32
from pddl.logic import Predicate, constants, variables
43
from pddl.logic.base import And, OneOf
@@ -8,6 +7,8 @@
87

98
from genfond.ground import ground, ground_domain_predicates
109

10+
from .helpers import get_action
11+
1112

1213
def test_ground_simple(simple_blocks):
1314
domain, problem = simple_blocks

tests/test_ground_numeric.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from helpers import get_action
21
from pddl.action import Action
32
from pddl.logic import Constant, Variable
43
from pddl.logic.base import And
@@ -7,6 +6,8 @@
76

87
from genfond.ground import ground
98

9+
from .helpers import get_action
10+
1011

1112
def test_ground_childsnack(childsnack):
1213
domain, problem = childsnack

0 commit comments

Comments
 (0)