Skip to content

Commit

Permalink
Merge pull request #11 from yandex-qatools/flake8_fixes
Browse files Browse the repository at this point in the history
Fix flake8 warnings
  • Loading branch information
pupssman committed Mar 3, 2015
2 parents 355a098 + f0dd86e commit 4621feb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion builders/tests/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ def test_flatten():


def test_flatten_callable():
x = lambda: [1, 2, 3]
def x():
return [1, 2, 3]
y = [4, 5, x]

assert list(flatten(y)) == [4, 5, 1, 2, 3]
Expand Down
6 changes: 3 additions & 3 deletions builders/tests/test_uplink.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ class Up:
def test_reuse():
d1 = Builder(Down).withA(InstanceModifier(Up).thatSets(id=1)).build()

# assert d1 in d1.up.downs FIXME: this should work
# assert d1 in d1.up.downs FIXME: this should work

d2 = Builder(Down).withA(InstanceModifier(Up).thatSets(id=1)).build()
d3 = Builder(Down).withA(InstanceModifier(Up).thatSets(id=2)).build()

assert d1.up == d2.up
# assert d1 in d2.up.downs FIXME: this should work
# assert d2 in d2.up.downs FIXME: this should work
# assert d1 in d2.up.downs FIXME: this should work
# assert d2 in d2.up.downs FIXME: this should work
assert d1.up != d3.up


Expand Down

0 comments on commit 4621feb

Please sign in to comment.