diff --git a/tests/test_issue_152_153_edge_cases.py b/tests/test_issue_152_153_edge_cases.py index e5638909..a4642a87 100644 --- a/tests/test_issue_152_153_edge_cases.py +++ b/tests/test_issue_152_153_edge_cases.py @@ -311,11 +311,13 @@ class TestVariantDetectionEdgeCases: temp_path = Path(temp_dir) # Test with just manifest.md - (temp_path / "manifest.md").touch() - assert detector.is_exploded_directory(temp_path) is True + manifest_test_dir = temp_path / "manifest_test" + manifest_test_dir.mkdir() + (manifest_test_dir / "manifest.md").touch() + assert detector.is_exploded_directory(manifest_test_dir) is True # Test with .mdd extension directory with exploded structure - mdd_dir = temp_path.parent / f"test_{hash(temp_path)}.mdd" + mdd_dir = temp_path / "test_structure.mdd" mdd_dir.mkdir() # Create exploded structure with numbered directories (mdd_dir / "01_chapter").mkdir() @@ -323,7 +325,7 @@ class TestVariantDetectionEdgeCases: assert detector.is_exploded_directory(mdd_dir) is True # Test with completely empty directory - empty_dir = temp_path.parent / "empty" + empty_dir = temp_path / "empty_test" empty_dir.mkdir() assert detector.is_exploded_directory(empty_dir) is False