From 5db8c22fbeb600432b0fb46bf75341614eb37d3c Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Fri, 27 Oct 2023 10:35:59 -0700 Subject: [PATCH] wip --- .github/workflows/python.yml | 2 +- binding/python/test_falcon.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index c06fcf4..14f8073 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -59,7 +59,7 @@ jobs: run: pip install -r requirements.txt - name: Test - run: python test_falcon.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}} + run: python test_falcon.py ${{secrets.PV_VALID_ACCESS_KEY}} # build-self-hosted: # runs-on: ${{ matrix.machine }} diff --git a/binding/python/test_falcon.py b/binding/python/test_falcon.py index a53403c..723e987 100644 --- a/binding/python/test_falcon.py +++ b/binding/python/test_falcon.py @@ -56,12 +56,12 @@ def _validate_metadata(self, segments: Sequence[Falcon.Segment], audio_length: f self.assertLessEqual(segments[i].end_sec, audio_length) self.assertTrue(segments[i].speaker_tag >= 0) - # def test_invalid_access_key(self): - # with self.assertRaises(FalconInvalidArgumentError): - # Falcon( - # access_key='invalid', - # model_path=default_model_path('../../'), - # library_path=default_library_path('../../')) + def test_invalid_access_key(self): + with self.assertRaises(FalconInvalidArgumentError): + Falcon( + access_key='invalid', + model_path=default_model_path('../../'), + library_path=default_library_path('../../')) def test_invalid_model_path(self): with self.assertRaises(FalconIOError):