diff --git a/app/grants/tests/models/factories/grant_api_key_factory.py b/app/grants/tests/models/factories/grant_api_key_factory.py index 3b25607e1d1..6d9b66f8e78 100644 --- a/app/grants/tests/models/factories/grant_api_key_factory.py +++ b/app/grants/tests/models/factories/grant_api_key_factory.py @@ -10,4 +10,4 @@ class GrantAPIKeyFactory(factory.django.DjangoModelFactory): class Meta: model = GrantAPIKey - profile = factory.SubFactory(ProfileFactory) \ No newline at end of file + profile = factory.SubFactory(ProfileFactory) diff --git a/app/grants/tests/models/factories/profile_factory.py b/app/grants/tests/models/factories/profile_factory.py index f0d4a27423c..685ef0e3547 100644 --- a/app/grants/tests/models/factories/profile_factory.py +++ b/app/grants/tests/models/factories/profile_factory.py @@ -9,4 +9,4 @@ class Meta: model = Profile handle = factory.Sequence(lambda n: "Contributor_%03d" % n) - data = {} \ No newline at end of file + data = {} diff --git a/app/grants/tests/models/test_grant_api_key.py b/app/grants/tests/models/test_grant_api_key.py index f95d765b42c..8749e4bde7d 100644 --- a/app/grants/tests/models/test_grant_api_key.py +++ b/app/grants/tests/models/test_grant_api_key.py @@ -1,6 +1,6 @@ import pytest -from grants.models.grant_api_key import GrantAPIKey from dashboard.models import Profile +from grants.models.grant_api_key import GrantAPIKey from .factories.grant_api_key_factory import GrantAPIKeyFactory @@ -22,7 +22,7 @@ def test_grant_api_key_has_a_key(self): grant_api_key = GrantAPIKeyFactory() assert hasattr(grant_api_key, 'key') - assert grant_api_key.key == None + assert grant_api_key.key == '' def test_grant_api_key_has_a_secret(self): """Test secret attribute is present and is blank.""" @@ -30,7 +30,7 @@ def test_grant_api_key_has_a_secret(self): grant_api_key = GrantAPIKeyFactory() assert hasattr(grant_api_key, 'secret') - assert grant_api_key.secret == None + assert grant_api_key.secret == '' def test_grant_api_key_belongs_to_a_profile(self): """Test profile attribute is present.""" @@ -39,5 +39,3 @@ def test_grant_api_key_belongs_to_a_profile(self): assert hasattr(grant_api_key, 'profile') assert isinstance(grant_api_key.profile, Profile) - - \ No newline at end of file