Exemplo n.º 1
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)
Exemplo n.º 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)
Exemplo n.º 3
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)
Exemplo n.º 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)