Skip to content

Commit 04540a6

Browse files
committed
Adds test data
1 parent 0e149fd commit 04540a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/property_utils/tests/data.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
CompositeUnitConverter,
1616
)
1717
from property_utils.properties.validated_property import ValidatedProperty
18+
from property_utils.properties.property import Property
1819
from property_utils.exceptions.properties.property import PropertyValidationError
1920

2021

@@ -341,3 +342,10 @@ class PositiveProp(ValidatedProperty):
341342
def validate_value(self, value: float) -> None:
342343
if value <= 0:
343344
raise PropertyValidationError
345+
346+
347+
class PropUnit1(Property):
348+
default_units = Unit1.a
349+
350+
351+
class PropUnit2(Property): ...

0 commit comments

Comments
 (0)