Skip to content

Commit 0b7379d

Browse files
committed
Update test_admin.py
1 parent 47234a6 commit 0b7379d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simple_history/tests/tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ def test_middleware_anonymous_user(self):
193193
+ ['simple_history.middleware.HistoryRequestMiddleware'],
194194
}
195195
with override_settings(**overridden_settings):
196+
self.app.get(reverse('admin:index'))
196197
poll = Poll.objects.create(question="why?", pub_date=today)
197-
response = self.app.get(get_history_url(poll, 0))
198198
historical_poll = poll.history.all()[0]
199199
self.assertEqual(historical_poll.history_user, None,
200200
"Middleware request user should be able to "

0 commit comments

Comments
 (0)