File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,6 @@ def test_increase_page_view_count(self):
123
123
PageView .objects .all ().count () == 0
124
124
), 'There\' s no PageView object created yet.'
125
125
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
-
132
126
# testing for yesterday
133
127
with mock .patch ('readthedocs.analytics.tasks.timezone.now' ) as mocked_timezone :
134
128
mocked_timezone .return_value = self .yesterday
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ def test_build(self, load_config):
73
73
self .assertEqual (self .mocks .popen .call_count , 1 )
74
74
cmd = self .mocks .popen .call_args_list [0 ][0 ]
75
75
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' )
77
78
78
79
@mock .patch ('readthedocs.doc_builder.config.load_config' )
79
80
def test_build_respects_pdf_flag (self , load_config ):
You can’t perform that action at this time.
0 commit comments