예제 #1
0
파일: tests.py 프로젝트: JeanFred/mygpo
    def test_episode_queries(self):
        """ Test that the expected number of queries is executed """
        url = reverse('episode-slug', args=(self.podcast_slug.slug,
                                            self.episode_slug.slug))

        with self.assertNumQueries(5):
            anon_request(url)
예제 #2
0
    def test_episode_queries(self):
        """ Test that the expected number of queries is executed """
        url = reverse('episode-slug',
                      args=(self.podcast_slug.slug, self.episode_slug.slug))

        with self.assertNumQueries(5):
            anon_request(url)
예제 #3
0
파일: tests.py 프로젝트: JeanFred/mygpo
    def test_podcast_queries(self):
        """ Test that the expected number of queries is executed """
        url = reverse('podcast-slug', args=(self.podcast_slug.slug, ))
        # the number of queries must be independent of the number of episodes

        with self.assertNumQueries(5):
            anon_request(url)
예제 #4
0
    def test_podcast_queries(self):
        """ Test that the expected number of queries is executed """
        url = reverse('podcast-slug', args=(self.podcast_slug.slug, ))
        # the number of queries must be independent of the number of episodes

        with self.assertNumQueries(5):
            anon_request(url)