mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
replaced makefile with pytest.ini
This commit is contained in:
parent
d10bed5b6d
commit
5036f116c8
3 changed files with 5 additions and 5 deletions
4
Makefile
4
Makefile
|
|
@ -1,4 +0,0 @@
|
|||
.PHONY: epc_data_test_attributes
|
||||
|
||||
epc_data_test_attributes:
|
||||
pytest --cov-report term-missing --cov=epc_data/attributes
|
||||
|
|
@ -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
3
pytest.ini
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[pytest]
|
||||
addopts = --cov-report term-missing --cov=epc_data/attributes --cov=epc_data/app.py
|
||||
testpaths = epc_data/tests
|
||||
Loading…
Add table
Reference in a new issue