mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-13 23:14:32 -05:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user