Beispiel #1
0
 def test_update_rating_still_complete(self, complete_errs):
     self._rate_app()
     self.app.update(status=amo.STATUS_PENDING)
     eq_(
         _ratings_success_msg(self.app, amo.STATUS_PENDING, self.days_ago(5).isoformat()),
         _submission_msgs()["content_ratings_saved"],
     )
Beispiel #2
0
 def test_create_rating_now_complete(self, complete_errs):
     self._rate_app()
     self.app.update(status=amo.STATUS_PENDING)
     eq_(_ratings_success_msg(self.app, amo.STATUS_NULL, None), _submission_msgs()["complete"])
Beispiel #3
0
 def test_create_rating_public_app(self, complete_errs):
     self._rate_app()
     self.app.update(status=amo.STATUS_PUBLIC)
     eq_(_ratings_success_msg(self.app, amo.STATUS_PUBLIC, None), _submission_msgs()["content_ratings_saved"])
Beispiel #4
0
 def test_create_rating_still_incomplete(self):
     self._rate_app()
     eq_(_ratings_success_msg(self.app, amo.STATUS_NULL, None), _submission_msgs()["content_ratings_saved"])