We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7bea12 + 8a99848 commit 9f46049Copy full SHA for 9f46049
1 file changed
tests/whitebox/unittest/test_constants.py
@@ -16,6 +16,7 @@
16
"""
17
18
# isort: STDLIB
19
+import os
20
import unittest
21
22
# isort: LOCAL
@@ -97,8 +98,9 @@ def test_str_method(self):
97
98
for feature in PoolFeature:
99
if feature is PoolFeature.UNRECOGNIZED:
100
self.assertIsInstance(str(feature), str)
- with self.assertRaises(ValueError):
101
- PoolFeature("unknown")
+ if bool(int(os.environ.get("STRATIS_STRICT_POOL_FEATURES", False))):
102
+ with self.assertRaises(ValueError):
103
+ PoolFeature("unknown")
104
else:
105
self.assertEqual(str(feature), feature.value)
106
self.assertEqual(PoolFeature(feature.value), feature)
0 commit comments