Commit 8938e723 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix-language-in-test' into 'master'

Fix tests broken by default language change (#704, !943)

See merge request !944
parents b5f79730 2fb4f739
...@@ -177,8 +177,12 @@ class EventAdminTest(TestCase): ...@@ -177,8 +177,12 @@ class EventAdminTest(TestCase):
self.rf = RequestFactory() self.rf = RequestFactory()
def test_overview_link(self): def test_overview_link(self):
Check the overview link goes to the correct event and
contains the name.
self.assertEqual(self.admin.overview_link(self.event), self.assertEqual(self.admin.overview_link(self.event),
'<a href="/events/admin/1/">testevenement</a>') '<a href="/events/admin/1/">testevent</a>')
@mock.patch('events.admin.DoNextModelAdmin.has_change_permission') @mock.patch('events.admin.DoNextModelAdmin.has_change_permission')
@mock.patch('') @mock.patch('')
Supports Markdown
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