From d6014bc0c499700cb258cd20fac5d9356d207dc7 Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Wed, 27 Nov 2024 17:22:24 -0500 Subject: [PATCH] test: update python-language-doc-chunk to avoid yaml Signed-off-by: Nick Mitchell --- .../python-language-doc-chunk/pail/app.yaml | 19 ------------------- .../pail/{data => }/requirements.txt | 0 .../python-language-doc-chunk/settings.sh | 3 +++ 3 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 tests/tests/python-language-doc-chunk/pail/app.yaml rename tests/tests/python-language-doc-chunk/pail/{data => }/requirements.txt (100%) diff --git a/tests/tests/python-language-doc-chunk/pail/app.yaml b/tests/tests/python-language-doc-chunk/pail/app.yaml deleted file mode 100644 index c2608283..00000000 --- a/tests/tests/python-language-doc-chunk/pail/app.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: lunchpail.io/v1alpha1 -kind: Application -metadata: - name: doc_chunk -spec: - image: docker.io/python:3.12 - command: python3 ./main.py - needs: - - name: python - version: latest - requirements: | -{{ .Files.Get "data/requirements.txt" | indent 8 }} - code: - - name: main.py - source: | -{{ .Files.Get "src/main.py" | indent 8 }} - - name: doc_chunk_chunkers.py - source: | -{{ .Files.Get "src/doc_chunk_chunkers.py" | indent 8 }} diff --git a/tests/tests/python-language-doc-chunk/pail/data/requirements.txt b/tests/tests/python-language-doc-chunk/pail/requirements.txt similarity index 100% rename from tests/tests/python-language-doc-chunk/pail/data/requirements.txt rename to tests/tests/python-language-doc-chunk/pail/requirements.txt diff --git a/tests/tests/python-language-doc-chunk/settings.sh b/tests/tests/python-language-doc-chunk/settings.sh index 30f99b7e..6d1d4371 100644 --- a/tests/tests/python-language-doc-chunk/settings.sh +++ b/tests/tests/python-language-doc-chunk/settings.sh @@ -3,4 +3,7 @@ api=workqueue expected=("Transforming one table with 1 rows" "Done with nfiles=1 nrows=88") NUM_DESIRED_OUTPUTS=0 +# the default is --yaml. we don't want that +source_from=" " + up_args='<(gunzip -c "$TEST_PATH"/pail/test-data/input/test1.parquet.gz)'