Commit 7f7f2045 by Jason Bau

fix embargo middleware test (expect 13 sql queries, not 12)

parent 8c525d76
...@@ -264,7 +264,7 @@ class EmbargoMiddlewareTests(ModuleStoreTestCase): ...@@ -264,7 +264,7 @@ class EmbargoMiddlewareTests(ModuleStoreTestCase):
# Access the page multiple times, but expect that we hit # Access the page multiple times, but expect that we hit
# the database to check the user's profile only once # the database to check the user's profile only once
with self.assertNumQueries(12): with self.assertNumQueries(13):
self.client.get(self.embargoed_page) self.client.get(self.embargoed_page)
@mock.patch.dict(settings.FEATURES, {'EMBARGO': False}) @mock.patch.dict(settings.FEATURES, {'EMBARGO': False})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment