diff --git a/Makefile b/Makefile deleted file mode 100644 index f0151315..00000000 --- a/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -.PHONY: epc_data_test_attributes - -epc_data_test_attributes: - pytest --cov-report term-missing --cov=epc_data/attributes diff --git a/epc_data/attributes/WindowAttributes.py b/epc_data/attributes/WindowAttributes.py index 19c71e77..88cc4538 100644 --- a/epc_data/attributes/WindowAttributes.py +++ b/epc_data/attributes/WindowAttributes.py @@ -1,4 +1,5 @@ from typing import Dict, List, Union +from epc_data.attributes.attribute_utils import clean_description class WindowAttributes: @@ -7,7 +8,7 @@ class WindowAttributes: GLAZING_TYPES = ["double", "triple", "secondary", "multiple", "high performance"] def __init__(self, description: str): - self.description: str = self._clean_description(description.lower()) + self.description: str = clean_description(description.lower()) if not description or not any( rt in self.description for rt in diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..ed445f55 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +addopts = --cov-report term-missing --cov=epc_data/attributes --cov=epc_data/app.py +testpaths = epc_data/tests