Another Step in the Quest to clean up the code base.
This commit is contained in:
@@ -25,12 +25,11 @@ class KyuDanTest(TestCase):
|
||||
'test_kyu_dan_rankings.json'
|
||||
]
|
||||
|
||||
|
||||
def recalc(self):
|
||||
"""
|
||||
Test if a Kyu/Dan Ranking recalculation gives the same result as stored.
|
||||
|
||||
:return:
|
||||
Test if a Kyu/Dan Ranking recalculation gives the same result as stored.
|
||||
|
||||
:return:
|
||||
"""
|
||||
|
||||
for ranking in KyuDanRanking.objects.all():
|
||||
@@ -49,8 +48,8 @@ class KyuDanTest(TestCase):
|
||||
def test_partial_recalc(self):
|
||||
"""
|
||||
Test if partial recalclulation gives the same results.
|
||||
|
||||
:return:
|
||||
|
||||
:return:
|
||||
"""
|
||||
|
||||
for ranking in KyuDanRanking.objects.all():
|
||||
@@ -78,8 +77,8 @@ class KyuDanTest(TestCase):
|
||||
def test_points_sum(self):
|
||||
"""
|
||||
Test if the sum of the kyu / dan points equals the value in the Ranking.
|
||||
|
||||
:return: None
|
||||
|
||||
:return: None
|
||||
"""
|
||||
for ranking in KyuDanRanking.objects.all():
|
||||
dan_kyu = 'dan_points' if ranking.dan else 'kyu_points'
|
||||
|
||||
Reference in New Issue
Block a user