Skip to content

Commit e90ea84

Browse files
committed
Fix tests
We were testing with non-build versions. But in production is more common to hit this with build versions.
1 parent 2b4fddb commit e90ea84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/rtd_tests/tests/test_footer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,12 @@ class TestFooterPerformance(APITestCase):
240240

241241
# The expected number of queries for generating the footer
242242
# This shouldn't increase unless we modify the footer API
243-
EXPECTED_QUERIES = 9
243+
EXPECTED_QUERIES = 13
244244

245245
def setUp(self):
246246
self.pip = Project.objects.get(slug='pip')
247247
self.pip.versions.create_latest()
248+
self.pip.versions.update(built=True)
248249

249250
def render(self):
250251
request = self.factory.get(self.url)

0 commit comments

Comments
 (0)