Skip to content

Commit a04147a

Browse files
committed
[test_validation.py] Change to Empty Property Type for Standalone Property Test
1 parent bb34306 commit a04147a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_validation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def test_standalone_property(self):
146146
Test if standalone property does not return errors.
147147
"""
148148

149-
prop = odml.Property("prop", dtype="int", values=[1, 2])
149+
prop = odml.Property()
150+
prop.type = ""
150151

151152
for err in validate(prop).errors:
152-
assert("error" not in err.rank)
153+
assert not err.is_error

0 commit comments

Comments
 (0)