diff --git a/pytest.ini b/pytest.ini index bddc2d2..6b3b568 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,3 @@ [pytest] -addopts = --cov=catinabox --cov-report=term-missing --pep8 --flakes --mccabe +addopts = --cov=catinabox --cov-report=term-missing --flakes --mccabe testpaths = tests catinabox diff --git a/tests/test_catmath.py b/tests/test_catmath.py index ced6358..03e8d1b 100644 --- a/tests/test_catmath.py +++ b/tests/test_catmath.py @@ -2,18 +2,21 @@ def test__cat_years_to_hooman_years__middle_age__succeeds(): - assert True + assert catmath.cat_years_to_hooman_years(8) == 40 def test__cat_years_to_hooman_years__less_than_one_year__succeeds(): - assert True + assert catmath.cat_years_to_hooman_years(0.5) == 2.5 def test__cat_years_to_hooman_years__0__returns_0(): - assert True + assert catmath.cat_years_to_hooman_years(0) == 0 # BONUS MATERIAL FOR STEP 2 def test__is_cat_leap_year__succeeds(): + assert catmath.is_cat_leap_year(2017) is False assert catmath.is_cat_leap_year(2016) is True + assert catmath.is_cat_leap_year(1800) is False + assert catmath.is_cat_leap_year(2000) is True