aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps/tests/test_api.py
diff options
context:
space:
mode:
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():