Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit d3d2df8

Browse files
committed
kosovo tests
1 parent f8f43d4 commit d3d2df8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

web/tests/test_events_processors.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,25 @@ def test_create_event_in_moldova(admin_user, db):
345345

346346
assert "MD" == test_event.country.code
347347

348+
@pytest.mark.django_db
349+
def test_create_event_in_kosovo(admin_user, db):
350+
event_data = {
351+
'audience': [3],
352+
'theme': [1,2],
353+
'contact_person': u'[email protected]',
354+
'country': u'XK',
355+
'description': u'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
356+
'event_url': u'',
357+
'location': u'Shaban Polluzha, Prishtina, Kosova (Kosovo)',
358+
'organizer': u'RailsGirls Kosovo',
359+
"creator": admin_user,
360+
'start_date': datetime.datetime.now(),
361+
'end_date': datetime.datetime.now() + datetime.timedelta(days=3, hours=3),
362+
'tags': [u'css', u'html', u'web'],
363+
'title': u'RailsGirls Kosovo',
364+
}
365+
366+
test_event = create_or_update_event(event_id=None, **event_data)
367+
368+
assert "XK" == test_event.country.code
369+

0 commit comments

Comments
 (0)