Skip to content

Commit 8df6fdc

Browse files
committed
update tests names with new folder structure
1 parent 521fd48 commit 8df6fdc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_gre_to_gmat.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22

3-
from src.main import _validate_score_input,gre2gmat,rough_gre2gmat,rougher_gre2gmat
4-
from src.constants import MAX_GRE, MIN_GRE, BAD_INPUT_RETURN, MIN_GMAT, MAX_GMAT
3+
from gre2gmat.conversions import _validate_score_input,gre2gmat,rough_gre2gmat,rougher_gre2gmat
4+
from gre2gmat.constants import MAX_GRE, MIN_GRE, BAD_INPUT_RETURN, MIN_GMAT, MAX_GMAT
55

66
class TestScoreCalculation(unittest.TestCase):
77

@@ -40,6 +40,11 @@ def test_sanity_check_rougher_gre2gmat(self):
4040
"GMAT Score: {} not between {} and {}".format(
4141
gmat,MIN_GMAT,MAX_GMAT))
4242

43+
def test_gmat_conversion_spot_check(self):
44+
gmat = gre2gmat(gre_verbal=161,gre_quant=160)
45+
self.assertTrue(gmat>=640 and gmat <= 660,
46+
"Expect GRE Verbal of 161 and GRE Quant to be near 650, but got: {}".format(gmat))
47+
4348
def test_validate_quant_score_too_high(self):
4449
_,q = _validate_score_input(v=MAX_GRE-1,q=MAX_GRE+1)
4550
self.assertEquals(q,BAD_INPUT_RETURN)
@@ -64,8 +69,5 @@ def test_non_parseable_quant(self):
6469
_,q = _validate_score_input(v=MAX_GRE-1,q='Ross')
6570
self.assertEquals(q,BAD_INPUT_RETURN)
6671

67-
68-
69-
7072
if __name__ == '__main__':
7173
unittest.main()

0 commit comments

Comments
 (0)