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

Commit cbcd4ae

Browse files
committed
Merge pull request #356 from ialja/master
add Serbia as a country
2 parents acef61a + 99ff1e4 commit cbcd4ae

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

codeweekeu/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@
436436
u'PY': None,
437437
u'QA': None,
438438
u'RE': None,
439-
u'RS': None,
440439
u'RU': None,
441440
u'RW': None,
442441
u'SA': None,

static/flags/rs.png

1.77 KB
Loading

web/tests/test_events_processors.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,28 @@ def test_create_event_in_kosovo(admin_user, db):
367367

368368
assert "XK" == test_event.country.code
369369

370+
@pytest.mark.django_db
371+
def test_create_event_in_serbia(admin_user, db):
372+
event_data = {
373+
'audience': [3],
374+
'theme': [1,2],
375+
'contact_person': u'[email protected]',
376+
'country': u'RS',
377+
'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.',
378+
'event_url': u'',
379+
'location': u'96 Bulevar despota Stefana, Belgrade, Serbia',
380+
'organizer': u'RailsGirls Serbia',
381+
"creator": admin_user,
382+
'start_date': datetime.datetime.now(),
383+
'end_date': datetime.datetime.now() + datetime.timedelta(days=3, hours=3),
384+
'tags': [u'css', u'html', u'web'],
385+
'title': u'RailsGirls Serbia',
386+
}
387+
388+
test_event = create_or_update_event(event_id=None, **event_data)
389+
390+
assert "RS" == test_event.country.code
391+
370392
@pytest.mark.django_db
371393
def test_scoreboard_counter(admin_user, db):
372394

0 commit comments

Comments
 (0)