mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-24 11:11:15 -04:00
Add list of local council domains
Taken from: https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/655371/List_of_.gov.uk_domain_names_as_at_26_October_2017.csv/preview Then filtered down to councils using this script: ```python import clipboard import csv with open('List_of_.gov.uk_domain_names_as_at_26_October_2017.csv') as l: f = csv.reader(l) s = '' for row in f: if 'council' in row[1].lower(): s = s + "{}:\n sector: local\n owner: {}\n".format(*row) clipboard.copy(s) ```
This commit is contained in:
5997
app/domains.yml
5997
app/domains.yml
File diff suppressed because it is too large
Load Diff
@@ -337,6 +337,19 @@ def test_get_valid_government_domain_some_known_details():
|
||||
assert government_domain.agreement_signed is True
|
||||
|
||||
|
||||
def test_get_valid_government_domain_gets_most_specific_first():
|
||||
|
||||
generic = GovernmentDomain("gov.uk")
|
||||
assert generic.sector is None
|
||||
assert generic.owner is None
|
||||
assert generic.agreement_signed is False
|
||||
|
||||
specific = GovernmentDomain("dacorum.gov.uk")
|
||||
assert specific.sector is None
|
||||
assert specific.owner is None
|
||||
assert specific.agreement_signed is False
|
||||
|
||||
|
||||
def test_validate_government_domain_data():
|
||||
|
||||
for domain in GovernmentDomain.domains.keys():
|
||||
|
||||
Reference in New Issue
Block a user