Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Afghanistan link #640

Merged
merged 2 commits into from
Oct 20, 2020
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
Binary file added static/img/site_flags/flag_afghanistan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions ureport/settings_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,13 @@
# Country flags
# -----------------------------------------------------------------------------------
COUNTRY_FLAGS_SITES = [
dict(
name="Afghanistan",
host="//afghanistan.ureport.in/",
flag="flag_afghanistan.png",
is_static=True,
count_link="http://afghanistan.ureport.in/count/",
),
dict(
name="Argentina",
host="//argentina.ureport.in/",
Expand Down
2 changes: 1 addition & 1 deletion ureport/utils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_get_linked_orgs(self):

# we have 3 old org in the settings
self.assertEqual(len(get_linked_orgs()), settings_sites_count)
self.assertEqual(get_linked_orgs()[0]["name"].lower(), "argentina")
self.assertEqual(get_linked_orgs()[0]["name"].lower(), "afghanistan")

@patch("dash.orgs.models.TembaClient.get_flows")
def test_fetch_flows(self, mock_get_flows):
Expand Down