Skip to content

Commit

Permalink
Fix catalog/test
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Sep 20, 2024
1 parent 3a9fd32 commit f97a5e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions catalog/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,14 @@ pgcli db_user_pass="deploy" db_name="openledger": up
#########

# Run a command in a test container under `SERVICE`
_mount-test command: up-deps
[positional-arguments]
_mount-test *command: up-deps
env DC_USER="airflow" just ../run \
-e AIRFLOW_VAR_INGESTION_LIMIT=1000000 \
-w /opt/airflow/catalog \
--volume \'{{ justfile_directory() }}/../docker\':/opt/airflow/docker/ \
--volume {{ justfile_directory() }}/../docker:/opt/airflow/docker/ \
{{ SERVICE }} \
{{ command }}
"$@"

# Launch a Bash shell in a test container under `SERVICE`
# Run pytest with `--pdb` to workaround xdist breaking pdb.set_trace()
Expand All @@ -115,7 +116,7 @@ test-session:
# Run pytest in a test container under `SERVICE`
[positional-arguments]
test *args:
just _mount-test "bash -c \'pytest ""$@""\'"
just _mount-test bash -c "pytest $@"

#############
# Utilities #
Expand Down

0 comments on commit f97a5e6

Please sign in to comment.