Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouya Rostam committed Oct 27, 2023
1 parent 789eec4 commit 5db8c22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 6 additions & 6 deletions binding/python/test_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5db8c22

Please sign in to comment.