Skip to content

Commit

Permalink
Tests: c3voc: add missing video_recording_lost test preconditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Sep 2, 2024
1 parent 435e2f1 commit f0ae447
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_api_c3voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def test_request_none_unchanged(client, app, db, proposal, valid_auth_headers):


def test_update_voctoweb_with_correct_url(client, app, db, proposal, valid_auth_headers):
proposal.video_recording_lost = True
db.session.add(proposal)
db.session.commit()

rv = client.post(
f"/api/proposal/c3voc-publishing-webhook",
headers=valid_auth_headers,
Expand Down Expand Up @@ -323,7 +327,11 @@ def test_clears_thumbnail(client, app, db, proposal, valid_auth_headers):
assert proposal.thumbnail_url is None


def test_update_youtube_with_correct_url(client, app, db, proposal, valid_auth_headers):
def test_update_from_youtube_with_correct_url(client, app, db, proposal, valid_auth_headers):
proposal.video_recording_lost = True
db.session.add(proposal)
db.session.commit()

rv = client.post(
f"/api/proposal/c3voc-publishing-webhook",
headers=valid_auth_headers,
Expand Down

0 comments on commit f0ae447

Please sign in to comment.