Skip to content

Commit

Permalink
Try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EricTendian committed Dec 29, 2024
1 parent 7ee0b8b commit 50ef113
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ TYPESENSE_VERSION=27.1
TYPESENSE_API_KEY=testing
TYPESENSE_URL=http://typesense:8108

SEARCH_UI_URL=http://localhost:3000

#
# Storage settings
Expand Down
2 changes: 2 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ TYPESENSE_VERSION=27.1
TYPESENSE_API_KEY=testing
TYPESENSE_URL=http://typesense:8108

SEARCH_UI_URL=http://localhost:3000

#
# Storage settings
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ jobs:
run: |
docker compose --ansi never logs -f &
sleep 10
./make.sh test
./make.sh test -s
1 change: 1 addition & 0 deletions tests/search/test_adapters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
from unittest import TestCase

Expand Down
7 changes: 7 additions & 0 deletions tests/test_e2e.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import logging
import os
import unittest
from time import sleep
Expand Down Expand Up @@ -93,6 +94,12 @@ def test_transcribes_digital(self):
self.assertTrue(isinstance(json.loads(hit["raw_metadata"]), dict))
self.assertTrue(isinstance(json.loads(hit["raw_transcript"]), list))

logging.info({
"raw_audio_url": hit["raw_audio_url"],
"s3_public_url": os.getenv("S3_PUBLIC_URL"),
"original_s3_public_url": original_s3_public_url,
})

r = requests.get(
hit["raw_audio_url"].replace(
original_s3_public_url, os.getenv("S3_PUBLIC_URL")
Expand Down

0 comments on commit 50ef113

Please sign in to comment.