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

add Serbia as a country #356

Merged
merged 1 commit into from
Sep 26, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion codeweekeu/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@
u'PY': None,
u'QA': None,
u'RE': None,
u'RS': None,
u'RU': None,
u'RW': None,
u'SA': None,
Expand Down
Binary file added static/flags/rs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions web/tests/test_events_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,28 @@ def test_create_event_in_kosovo(admin_user, db):

assert "XK" == test_event.country.code

@pytest.mark.django_db
def test_create_event_in_serbia(admin_user, db):
event_data = {
'audience': [3],
'theme': [1,2],
'contact_person': u'[email protected]',
'country': u'RS',
'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.',
'event_url': u'',
'location': u'96 Bulevar despota Stefana, Belgrade, Serbia',
'organizer': u'RailsGirls Serbia',
"creator": admin_user,
'start_date': datetime.datetime.now(),
'end_date': datetime.datetime.now() + datetime.timedelta(days=3, hours=3),
'tags': [u'css', u'html', u'web'],
'title': u'RailsGirls Serbia',
}

test_event = create_or_update_event(event_id=None, **event_data)

assert "RS" == test_event.country.code

@pytest.mark.django_db
def test_scoreboard_counter(admin_user, db):

Expand Down