Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_repr_long(self):
level = Verbose.level
Verbose.level = 1
item_repr = repr(self.lowest)
Verbose.level = level
assert item_repr == ""
def test_repr_long(self):
level = Verbose.level
Verbose.level = 1
item_repr = repr(self.lowest)
Verbose.level = level
assert item_repr == ""
def test_repr_short(self):
level = Verbose.level
Verbose.level = 0
item_repr = repr(self.lowest)
Verbose.level = level
assert item_repr == ''