From 0ec4232cb56b22493254c8c80d7033cf0d228b62 Mon Sep 17 00:00:00 2001 From: Michael Youngstrom Date: Tue, 25 Sep 2018 14:43:50 -0400 Subject: [PATCH] Ensure we are starting at 0 when counting mongo queries --- .../management/commands/tests/test_notify_credentials.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openedx/core/djangoapps/credentials/management/commands/tests/test_notify_credentials.py b/openedx/core/djangoapps/credentials/management/commands/tests/test_notify_credentials.py index 52749dbb65..bda2ea290d 100644 --- a/openedx/core/djangoapps/credentials/management/commands/tests/test_notify_credentials.py +++ b/openedx/core/djangoapps/credentials/management/commands/tests/test_notify_credentials.py @@ -111,6 +111,7 @@ class TestNotifyCredentials(TestCase): @override_settings(DEBUG=True) def test_page_size(self): + reset_queries() call_command(Command(), '--start-date', '2017-01-01') baseline = len(connection.queries)