Skip to content

Commit

Permalink
Format with black==24.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ethho committed Sep 12, 2024
1 parent 14f8970 commit 9baa357
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 2 additions & 4 deletions tests/schema_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ class SelectPK(dj.Lookup):
id: int
select : int
"""
contents = list(dict(id=i, select=i * j)
for i in range(3) for j in range(4, 0, -1))
contents = list(dict(id=i, select=i * j) for i in range(3) for j in range(4, 0, -1))


class KeyPK(dj.Lookup):
definition = """ # tests sql keyword escaping
id : int
key : int
"""
contents = list(dict(id=i, key=i + j)
for i in range(3) for j in range(4, 0, -1))
contents = list(dict(id=i, key=i + j) for i in range(3) for j in range(4, 0, -1))


class IJ(dj.Lookup):
Expand Down
7 changes: 5 additions & 2 deletions tests/test_relational_operand.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,5 +660,8 @@ def test_top_errors(self, schema_simp_pop):
)
assert "TypeError: Top limit must be an integer" == str(err3.exconly())
assert "TypeError: Top order_by attributes must all be strings" == str(
err4.exconly())
assert "TypeError: The offset argument must be an integer" == str(err5.exconly())
err4.exconly()
)
assert "TypeError: The offset argument must be an integer" == str(
err5.exconly()
)

0 comments on commit 9baa357

Please sign in to comment.