Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Jer-Sch committed Sep 15, 2021
1 parent 0fcf531 commit 1f162e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/grants/tests/models/test_grant_api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,21 @@ def test_creation(self):
assert isinstance(grant_api_key, GrantAPIKey)

def test_grant_api_key_has_a_key(self):
"""Test key attribute is present and is blank."""
"""Test 'key' attribute is present."""

grant_api_key = GrantAPIKeyFactory()

assert hasattr(grant_api_key, 'key')
assert grant_api_key.key == ''

def test_grant_api_key_has_a_secret(self):
"""Test secret attribute is present and is blank."""
"""Test secret attribute is present."""

grant_api_key = GrantAPIKeyFactory()

assert hasattr(grant_api_key, 'secret')
assert grant_api_key.secret == ''

def test_grant_api_key_belongs_to_a_profile(self):
"""Test profile attribute is present."""
def test_grant_api_key_has_associated_profile(self):
"""Test profile attribute is present and is an instance of Profile."""

grant_api_key = GrantAPIKeyFactory()

Expand Down

0 comments on commit 1f162e2

Please sign in to comment.