Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 6500d73

Browse files
committed
Add test command in test_utilize_date.py
1 parent 9675b1f commit 6500d73

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22
from utilize_date import judge_leap_year, month_days
33

4+
45
def test_judge_leap_year():
56
assert judge_leap_year(2000) == True
67
assert judge_leap_year(2008) == True
@@ -9,10 +10,13 @@ def test_judge_leap_year():
910
assert judge_leap_year(2400) == True
1011
assert judge_leap_year(2100) == False
1112

13+
1214
def test_month_days():
1315
assert month_days(7, False) == 31
1416
assert month_days(4, True) == 30
1517
assert month_days(2, True) == 29
1618
assert month_days(2, False) == 28
1719
assert month_days(1, False) == 31
18-
assert month_days(11, True) == 30
20+
assert month_days(11, True) == 30
21+
22+
# "pytest -s test_calculate.py" to test this file

0 commit comments

Comments
 (0)