The yaml test suite has some weird bool rules
This commit is contained in:
@@ -144,11 +144,11 @@ class YamlTestCase(ElasticTestCase):
|
|||||||
except AssertionError:
|
except AssertionError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
self.assertFalse(value)
|
self.assertIn(value, ('', None, False, 0))
|
||||||
|
|
||||||
def run_is_true(self, action):
|
def run_is_true(self, action):
|
||||||
value = self._lookup(action)
|
value = self._lookup(action)
|
||||||
self.assertTrue(value)
|
self.assertNotIn(value, ('', None, False, 0))
|
||||||
|
|
||||||
def run_length(self, action):
|
def run_length(self, action):
|
||||||
for path, expected in action.items():
|
for path, expected in action.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user