Skip to content

Commit dd0db1a

Browse files
committed
Update test
1 parent 092f8d9 commit dd0db1a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

readthedocs/analytics/tests.py

-6
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,6 @@ def test_increase_page_view_count(self):
123123
PageView.objects.all().count() == 0
124124
), 'There\'s no PageView object created yet.'
125125

126-
# Without the feature flag, no PageView is created
127-
self.client.get(self.url, HTTP_HOST=self.host)
128-
assert (
129-
PageView.objects.all().count() == 0
130-
)
131-
132126
# testing for yesterday
133127
with mock.patch('readthedocs.analytics.tasks.timezone.now') as mocked_timezone:
134128
mocked_timezone.return_value = self.yesterday

readthedocs/rtd_tests/tests/test_builds.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def test_build(self, load_config):
7373
self.assertEqual(self.mocks.popen.call_count, 1)
7474
cmd = self.mocks.popen.call_args_list[0][0]
7575
self.assertRegex(cmd[0][0], r'python')
76-
self.assertRegex(cmd[0][1], r'sphinx-build')
76+
self.assertRegex(cmd[0][1], '-m')
77+
self.assertRegex(cmd[0][2], 'sphinx')
7778

7879
@mock.patch('readthedocs.doc_builder.config.load_config')
7980
def test_build_respects_pdf_flag(self, load_config):

0 commit comments

Comments
 (0)