Skip to content

Commit ad49bde

Browse files
committed
Reformat
1 parent a8410e7 commit ad49bde

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

atomdb/sql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ def distinct(self, *args):
10741074
)
10751075

10761076
def where_clause(self, k: str, v: Any, related_clauses: ListType):
1077-
""" Create a where clause from a django-style parameter.
1077+
"""Create a where clause from a django-style parameter.
10781078
This will modify the list of related clauses if a join occurs.
10791079
10801080
Parameters

tests/test_sql.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1090,11 +1090,14 @@ async def test_filter_exclude(db):
10901090
await reset_tables(User)
10911091
# Create second user
10921092
await User.objects.create(name="Bob", email="[email protected]", age=40, active=True)
1093-
await User.objects.create(name="Jack", email="[email protected]", age=30, active=False)
1093+
await User.objects.create(
1094+
name="Jack", email="[email protected]", age=30, active=False
1095+
)
10941096
await User.objects.create(name="Bob", email="[email protected]", age=20, active=False)
10951097

10961098
users = await User.objects.filter(name__startswith="B").exclude(
1097-
email__endswith="other.com")
1099+
email__endswith="other.com"
1100+
)
10981101
assert len(users) == 1 and users[0].email == "[email protected]"
10991102

11001103
users = await User.objects.exclude(active=True, age__lt=25)

0 commit comments

Comments
 (0)