Skip to content

Commit 95245a2

Browse files
committed
add tests
1 parent bfc7424 commit 95245a2

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/test_transcript.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,6 @@
2020

2121
@pytest.mark.usefixtures('mock_session', 'make_mock_response')
2222
class TestTranscriptEndpoints():
23-
def test_get_transcript_text(self, mock_session, make_mock_response):
24-
data = 'Test'
25-
client = RevAiAPIClient(TOKEN)
26-
expected_headers = {'Accept': 'text/plain'}
27-
expected_headers.update(client.default_headers)
28-
response = make_mock_response(url=URL, text=data)
29-
mock_session.request.return_value = response
30-
31-
res = client.get_transcript_text(JOB_ID)
32-
33-
assert res == data
34-
mock_session.request.assert_called_once_with("GET",
35-
URL,
36-
headers=expected_headers)
37-
3823
@pytest.mark.parametrize('group_channels_by, group_channels_threshold_ms', [(None, None), ('sentence', 5000), ('word', 2000)])
3924
def test_get_transcript_text(self, mock_session, make_mock_response, group_channels_by, group_channels_threshold_ms):
4025
data = 'Test'

0 commit comments

Comments
 (0)