aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps/tests/test_api.py
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2021-05-16 19:52:28 +0100
committerMatthew Lemon <matt@matthewlemon.com>2021-05-16 19:52:28 +0100
commit2bb492949858b0753a68beba76fd70ace2a1492f (patch)
tree3fa6b50c7dbffb4a6c1cf37e1160b65b8b5e8776 /datamaps/tests/test_api.py
parent58e1ba750e34f876c5435ee519483ffd87913854 (diff)
fixed broken test
Diffstat (limited to 'datamaps/tests/test_api.py')
-rw-r--r--datamaps/tests/test_api.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/datamaps/tests/test_api.py b/datamaps/tests/test_api.py
index 347ea4a..0ded406 100644
--- a/datamaps/tests/test_api.py
+++ b/datamaps/tests/test_api.py
@@ -15,13 +15,22 @@ def test_get_project_data(master):
def test_get_project_data_using_month(master):
- master = project_data_from_master_month(master, 7, 2021)
+ m = project_data_from_master_month(master, 7, 2021)
+ m2 = project_data_from_master_month(master, 8, 2021)
+ m3 = project_data_from_master_month(master, 9, 2021)
+ m4 = project_data_from_master_month(master, 10, 2021)
assert (
- master["Chutney Bridge.xlsm"]["Project/Programme Name"] == "Chutney Bridge Ltd"
+ m["Chutney Bridge.xlsm"]["Project/Programme Name"] == "Chutney Bridge Ltd"
)
- assert master.month == "July"
- assert master.quarter.quarter == 2
- assert master.quarter.end_date == datetime.date(2021, 9, 30)
+ assert m.month == "July"
+ assert m2.month == "August"
+ assert m3.month == "September"
+ assert m4.month == "October"
+ assert m.quarter.quarter == 2
+ assert m2.quarter.quarter == 2
+ assert m3.quarter.quarter == 2
+ assert m4.quarter.quarter == 3
+ assert m.quarter.end_date == datetime.date(2021, 9, 30)
def test_quarter_objects_have_months():