replaced makefile with pytest.ini

This commit is contained in:
Khalim Conn-Kowlessar 2023-06-14 10:34:50 +01:00
parent d10bed5b6d
commit 5036f116c8
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +0,0 @@
.PHONY: epc_data_test_attributes
epc_data_test_attributes:
pytest --cov-report term-missing --cov=epc_data/attributes

View file

@ -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

3
pytest.ini Normal file
View file

@ -0,0 +1,3 @@
[pytest]
addopts = --cov-report term-missing --cov=epc_data/attributes --cov=epc_data/app.py
testpaths = epc_data/tests