aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps/tests/test_api.py
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2021-05-17 08:13:22 +0100
committerMatthew Lemon <matt@matthewlemon.com>2021-05-17 08:13:22 +0100
commita5b4f46b55ee39409126da978677f54e271060c1 (patch)
treefd8d7afc460479efb3220fcf5c61f38d0dc9d91d /datamaps/tests/test_api.py
parente3f26229d0f69ddb93b866e184626337c30778c2 (diff)
refactorings
Diffstat (limited to 'datamaps/tests/test_api.py')
-rw-r--r--datamaps/tests/test_api.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/datamaps/tests/test_api.py b/datamaps/tests/test_api.py
index e3f3515..ecb30ac 100644
--- a/datamaps/tests/test_api.py
+++ b/datamaps/tests/test_api.py
@@ -1,8 +1,7 @@
import datetime
-import pytest
from ..api import project_data_from_master, project_data_from_master_month
-from ..core.temporal import Quarter, Month
+from ..core.temporal import Month
def test_get_project_data(master):
@@ -19,9 +18,7 @@ def test_get_project_data_using_month(master):
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 (
- m["Chutney Bridge.xlsm"]["Project/Programme Name"] == "Chutney Bridge Ltd"
- )
+ assert m["Chutney Bridge.xlsm"]["Project/Programme Name"] == "Chutney Bridge Ltd"
assert isinstance(m.month, Month)
assert m.month.name == "July"
assert m2.month.name == "August"