Skip to content

Commit 20a9812

Browse files
committed
Fix tests
1 parent 636e0ea commit 20a9812

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_streampot.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def test_get_job(stream_pot):
2323
m.get(mock_url, json=mock_response)
2424

2525
response = stream_pot.get_job(job_id)
26-
assert response == mock_response
26+
assert response.id == mock_response['id']
27+
assert response.status == JobStatus[mock_response['status'].upper()]
28+
assert response.created_at == mock_response['created_at']
2729

2830

2931
def test_run(stream_pot):
@@ -43,7 +45,7 @@ def test_add_action(stream_pot):
4345
stream_pot.merge_add('source_video.mp4')
4446
assert len(stream_pot.actions) == 1
4547
assert stream_pot.actions[0]['name'] == 'mergeAdd'
46-
assert stream_pot.actions[0]['value'] == ('source_video.mp4',)
48+
assert stream_pot.actions[0]['value'] == ['source_video.mp4']
4749

4850

4951
@pytest.mark.parametrize("method, expected_action", [
@@ -56,4 +58,4 @@ def test_actions(stream_pot, method, expected_action):
5658
action_method('example_source')
5759
assert len(stream_pot.actions) == 1
5860
assert stream_pot.actions[0]['name'] == expected_action
59-
assert stream_pot.actions[0]['value'] == ('example_source',)
61+
assert stream_pot.actions[0]['value'] == ['example_source']

0 commit comments

Comments
 (0)