Skip to content

Commit

Permalink
Sort out BASE_DIR if mutant testing
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Nov 21, 2024
1 parent 16f0dc0 commit 2b027bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/platform_helper/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
from dbt_platform_helper.utils.aws import AWS_SESSION_CACHE
from dbt_platform_helper.utils.versioning import PlatformHelperVersions

BASE_DIR = Path(__file__).parent.parent.parent
if "/mutants/" in __file__:
BASE_DIR = Path(__file__).parent.parent.parent.parent
else:
BASE_DIR = Path(__file__).parent.parent.parent

print(f"BASE_DIR: {BASE_DIR}")
TEST_APP_DIR = BASE_DIR / "tests" / "platform_helper" / "test-application-deploy"
FIXTURES_DIR = BASE_DIR / "tests" / "platform_helper" / "fixtures"
EXPECTED_FILES_DIR = BASE_DIR / "tests" / "platform_helper" / "expected_files"
Expand Down

0 comments on commit 2b027bc

Please sign in to comment.