mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix flake8 ambiguous variable "l" issue
This commit is contained in:
parent
dc00e16fda
commit
50eb857133
@ -142,9 +142,9 @@ def test_is_genesis_block_returns_true_if_genesis(b):
|
|||||||
def test_lazy_execution():
|
def test_lazy_execution():
|
||||||
from bigchaindb.utils import Lazy
|
from bigchaindb.utils import Lazy
|
||||||
|
|
||||||
l = Lazy()
|
lz = Lazy()
|
||||||
l.split(',')[1].split(' ').pop(1).strip()
|
lz.split(',')[1].split(' ').pop(1).strip()
|
||||||
result = l.run('Like humans, cats tend to favor one paw over another')
|
result = lz.run('Like humans, cats tend to favor one paw over another')
|
||||||
assert result == 'cats'
|
assert result == 'cats'
|
||||||
|
|
||||||
class Cat:
|
class Cat:
|
||||||
@ -153,7 +153,7 @@ def test_lazy_execution():
|
|||||||
|
|
||||||
cat = Cat('Shmui')
|
cat = Cat('Shmui')
|
||||||
|
|
||||||
l = Lazy()
|
lz = Lazy()
|
||||||
l.name.upper()
|
lz.name.upper()
|
||||||
result = l.run(cat)
|
result = lz.run(cat)
|
||||||
assert result == 'SHMUI'
|
assert result == 'SHMUI'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user