Fix movie edition tests (#1196)

This commit is contained in:
JonnyWong16 2023-07-27 17:44:09 -07:00 committed by GitHub
parent 9ede493f4c
commit 4f4f60a584
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -669,12 +669,16 @@ def test_video_Movie_mixins_fields(movie):
test_mixins.edit_tagline(movie)
test_mixins.edit_title(movie)
test_mixins.edit_user_rating(movie)
@pytest.mark.anonymous
def test_video_Movie_mixins_fields_edition(movie):
with pytest.raises(BadRequest):
test_mixins.edit_edition_title(movie)
@pytest.mark.authenticated
def test_video_Movie_mixins_fields_edition(movie):
def test_video_Movie_mixins_fields_edition_authenticated(movie):
test_mixins.edit_edition_title(movie)