Don’t parametrize on government domains

There’s over 1000 domains in our file. This is too much for parametrize
to handle when running the tests on multiple cores. End up with this
error:
```
Different tests were collected between gw1 and gw2.
```
This commit is contained in:
Chris Hill-Scott
2018-02-08 10:51:59 +00:00
parent 9ca6bd0f24
commit 59bb7bdd5d

View File

@@ -350,21 +350,22 @@ def test_get_valid_government_domain_gets_most_specific_first():
assert specific.agreement_signed is True
@pytest.mark.parametrize('domain', GovernmentDomain.domains.keys())
def test_validate_government_domain_data(domain):
def test_validate_government_domain_data():
government_domain = GovernmentDomain(domain)
for domain in GovernmentDomain.domains.keys():
assert government_domain.crown_status in {
True, False, None
}
government_domain = GovernmentDomain(domain)
assert (
government_domain.owner is None
) or (
isinstance(government_domain.owner, str)
)
assert government_domain.crown_status in {
True, False, None
}
assert government_domain.agreement_signed in {
True, False, None
}
assert (
government_domain.owner is None
) or (
isinstance(government_domain.owner, str)
)
assert government_domain.agreement_signed in {
True, False, None
}