@pytest.mark.django_db
def test_approve_addons_get_review_type_already_approved():
 addon = addon_factory(status=amo.STATUS_PUBLIC)
 file_ = addon.versions.get().files.get()
 file_.update(status=amo.STATUS_PUBLIC)
 assert (approve_addons.get_review_type(file_) is None)

@ pytest . mark . django_db def test_approve_addons_get_review_type_already_approved ( ) : addon = addon_factory ( status = amo . STATUS_PUBLIC ) file_ = addon . versions . get ( ) . files . get ( ) file_ . update ( status = amo . STATUS_PUBLIC ) assert ( approve_addons . get_review_type ( file_ ) is None )
the review type for a file that doesnt need approval is none .