Skip to content

Commit

Permalink
Fix failed unittests
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Dec 15, 2024
1 parent c0322f7 commit 38e68a1
Show file tree
Hide file tree
Showing 4 changed files with 13,965 additions and 3 deletions.
2 changes: 1 addition & 1 deletion acto/checker/impl/tests/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def input_model_and_context_mapping() -> (
Dict[str, Tuple[Dict, DeterministicInputModel]]
):
"""Returns a mapping from apiVersion to (context, input_model)"""
configs = glob.glob("./data/**/config.json")
configs = glob.glob("./data/**/config.json", recursive=True)
ret = {}
for config_path in configs:
with open(config_path, "r", encoding="utf-8") as f:
Expand Down
12 changes: 10 additions & 2 deletions acto/post_process/test_post_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ class TestPostProcessor(unittest.TestCase):
def __init__(self, methodName: str = "runTest") -> None:
super().__init__(methodName)
config_path = os.path.join(
test_dir.parent.parent, "data", "cass-operator", "config.json"
test_dir.parent.parent,
"data",
"cass-operator",
"v1-10-3",
"config.json",
)
self.testrun_dir = os.path.join(
test_dir, "test_data", "testrun-cass-whitebox-1"
Expand All @@ -37,7 +41,11 @@ class TestPostDiffTest(unittest.TestCase):
def __init__(self, methodName: str = "runTest") -> None:
super().__init__(methodName)
config_path = os.path.join(
test_dir.parent.parent, "data", "cass-operator", "config.json"
test_dir.parent.parent,
"data",
"cass-operator",
"v1-10-3",
"config.json",
)
self.testrun_dir = os.path.join(
test_dir, "test_data", "testrun-cass-whitebox-1"
Expand Down
Loading

0 comments on commit 38e68a1

Please sign in to comment.