Skip to content

Commit

Permalink
changes based on feedback
Browse files Browse the repository at this point in the history
Signed-off-by: saravanan palanisamy <[email protected]>

changes based on feedback

Signed-off-by: saravanan palanisamy <[email protected]>

changes based on feedback

Signed-off-by: saravanan palanisamy <[email protected]>
  • Loading branch information
saravanan30erd committed Mar 9, 2021
1 parent 98d7564 commit d7d5e20
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions chaoslib/hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,8 @@ def _(tolerance: dict, value: Any, configuration: Configuration = None, #noqa:

if "expect" in tolerance and result is False:
expect_one_of = tolerance.get("expect_one_of")
if "expect_one_of" in tolerance:
if not isinstance(expect_one_of, list):
result = values == [expect_one_of]
else:
result = values == expect_one_of
if expect_one_of is not None:
result = values == expect_one_of

if result is False:
if "expect" in tolerance and "expect_one_of" in tolerance:
Expand Down

0 comments on commit d7d5e20

Please sign in to comment.