Skip to content

Commit cd3890a

Browse files
committed
update: tests for mixins
1 parent 5083460 commit cd3890a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/py/mat3ra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
22
# otherwise, `mat3ra.utils` path leads to an empty __init__.py file in the code.py package

src/py/mat3ra/code/mixins/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from mat3ra.esse.models.system.description import DescriptionSchema
55
from mat3ra.esse.models.system.metadata import MetadataSchema
66
from mat3ra.esse.models.system.name import NameEntitySchema
7-
87
from pydantic import BaseModel
98

109

tests/py/unit/test_mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ExampleDefaultable(DefaultableMixin):
1616

1717
assert instance.key == "value"
1818
assert instance.number == 42
19-
assert hasattr(instance, 'isDefault') and instance.isDefault is True
19+
assert hasattr(instance, "isDefault") and instance.isDefault is True
2020

2121

2222
def test_named_mixin():

0 commit comments

Comments
 (0)