Skip to content

Commit

Permalink
Format 'test_select'
Browse files Browse the repository at this point in the history
  • Loading branch information
dkopitsa committed Sep 19, 2024
1 parent edc0bc0 commit ce779e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/src/piccolo/query_clauses/lock_for.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Which is equivalent to:
SELECT ... FOR SHARE
nowait
------

Expand Down
4 changes: 2 additions & 2 deletions tests/table/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,8 +1044,8 @@ def test_lock_for(self):
query = query.lock_for()
self.assertTrue(query.__str__().endswith("FOR UPDATE"))

query = query.lock_for(lock_strength='key share')
self.assertTrue(query.__str__().endswith('FOR KEY SHARE'))
query = query.lock_for(lock_strength="key share")
self.assertTrue(query.__str__().endswith("FOR KEY SHARE"))

query = query.lock_for(skip_locked=True)
self.assertTrue(query.__str__().endswith("FOR UPDATE SKIP LOCKED"))
Expand Down

0 comments on commit ce779e1

Please sign in to comment.