Skip to content

Commit

Permalink
run tests from the correct working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 19, 2024
1 parent 9904ac1 commit f65a5f6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dagger/run_dbt_spark_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,13 @@ async def test_spark(test_args):
tst_container = tst_container.with_exec(["apt-get", "install", "openjdk-17-jre", "-y"])

# run the tests
result = await tst_container.with_exec(
["hatch", "run", "pytest", "--profile", test_args.profile, test_args.test_path]
).stdout()
result = (
await tst_container.with_workdir("/src")
.with_exec(
["hatch", "run", "pytest", "--profile", test_args.profile, test_args.test_path]
)
.stdout()
)

return result

Expand Down

0 comments on commit f65a5f6

Please sign in to comment.