Example #1
0
 def get(self):
     movie = Movie.get_all()
     return movie_list_schema.dump(movie), HTTPStatus.OK
Example #2
0
def index():
    movies = Movie.get_all()
    return render_template('index.html', movies=movies)
Example #3
0
 def test_get_all(self):
     self.assertEqual(Movie.query.all(), Movie.get_all())