]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-108558: Improve sqlite3 row factory tests (GH-108578) (#108615)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Aug 2023 18:29:52 +0000 (11:29 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 18:29:52 +0000 (20:29 +0200)
commit1478a386e6540a7db46a20a45dd6b137bd30b585
tree94b1a7051fd3f5a6ce7ee1cbdb91aa833785b342
parentcdca4af6c2cbd8b19d98dad7cc380f0a2d8a4de8
[3.12] gh-108558: Improve sqlite3 row factory tests (GH-108578) (#108615)

* gh-108558: Improve sqlite3 row factory tests (GH-108578)

Add test_sqlite_row_keys() to explicitly test sqlite3.Row.keys().

Cleanups:
- Reduce test noise by converting docstrings to regular comments
- Reduce boilerplate code by adding a setUp() method to RowFactoryTests

(cherry picked from commit 6eaddc10e972273c1aed8b88c538e65e4773496e)

Co-authored-by: Edward Schauman-Haigh <142528725+EddInSverige@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
* Fix backport

---------

Co-authored-by: Edward Schauman-Haigh <142528725+EddInSverige@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Lib/test/test_sqlite3/test_factory.py