Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
10 changes: 10 additions & 0 deletions tools/process_new_vids/test/test_transcribe_worker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unittest
from pytubefix import YouTube
import transcribe_worker

class TestTranscribeWorker(unittest.TestCase):
def test_transcribe_worker(self):
BOARD_MEETING_MAY_13_2025 = 'cIVuHr9ub-Y'
video = YouTube(f"https://www.youtube.com/watch?v={BOARD_MEETING_MAY_13_2025}")
desc = transcribe_worker.get_description(video)
self.assertEqual(desc, "Seattle Public Schools")
4 changes: 2 additions & 2 deletions tools/process_new_vids/transcribe_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

WORKING_DIR = '/tmp/workspace/app/transcribe'
AUTH_PARAMS = {
'user_id': os.environ['CONTAINER_ID'],
'auth_code': os.environ['API_PASSWORD'],
'user_id': os.environ.get('CONTAINER_ID', 'container_id_unset'),
'auth_code': os.environ.get('API_PASSWORD', 'api_password_unset'),
}


Expand Down