From d4272b28da76c2d1fe110d611ef08a445f11ceb2 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 27 Sep 2019 15:12:57 +0100 Subject: initial commit --- datamaps/tests/test_api.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 datamaps/tests/test_api.py (limited to 'datamaps/tests/test_api.py') diff --git a/datamaps/tests/test_api.py b/datamaps/tests/test_api.py new file mode 100644 index 0000000..273f984 --- /dev/null +++ b/datamaps/tests/test_api.py @@ -0,0 +1,10 @@ +import datetime + +from ..api import project_data_from_master + + +def test_get_project_data(master): + master = project_data_from_master(master, 1, 2019) + assert master["Chutney Bridge.xlsm"]["Project/Programme Name"] == "Chutney Bridge Ltd" + assert master.quarter.quarter == 1 + assert master.quarter.end_date == datetime.date(2019, 6, 30) -- cgit v1.2.3