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 53b2d80 commit 4cce351
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/grants/tests/models/test_grant_clr_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@ def test_creation(self):
assert isinstance(grant_clr_calulation, GrantCLRCalculation)

def test_grant_clr_calculation_has_latest_attribute(self):
"""Test 'latest' attribute and default value."""
"""Test 'latest' attribute is present and defaults to False."""

grant_clr_calulation = GrantCLRCalculationFactory()

assert hasattr(grant_clr_calulation, 'latest')
assert grant_clr_calulation.latest == False

def test_grant_clr_calculation_belongs_to_grant(self):
"""Test GrantCLRCalculation relationship with associated Grant."""
def test_grant_clr_calculation_has_associated_grant(self):
"""Test 'grant' attribute is present and is an instance of Grant."""

grant_clr_calculation = GrantCLRCalculationFactory()

assert hasattr(grant_clr_calculation, 'grant')
assert isinstance(grant_clr_calculation.grant, Grant)

def test_grant_clr_calculation_belongs_to_grant_clr(self):
"""Test GrantCLRCalculation relationship with associated GrantCLR."""
def test_grant_clr_calculation_has_associated_grant_clr(self):
"""Test 'grantclr' attribute is present and is an instance of GrantCLR."""

grant_clr_calculation = GrantCLRCalculationFactory()

assert hasattr(grant_clr_calculation, 'grantclr')
assert isinstance(grant_clr_calculation.grantclr, GrantCLR)

def test_grant_clr_calculation_has_clr_prediction_curve(self):
"""Test 'clr_prediction_curve' attribute and default."""
"""Test 'clr_prediction_curve' attribute is present and defaults to an empty list."""

grant_clr_calculation = GrantCLRCalculationFactory()

Expand Down

0 comments on commit 4cce351

Please sign in to comment.