summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [test_basic_types] Add test for array[%s] on NULL arraysIon Alberdi2022-10-111-0/+2
| | | | Add test to verifity the fix for #1507.
* test: adapt ssl test to libpq 15Daniele Varrazzo2022-10-061-0/+5
| | | | | See #1506, PostgreSQL bug 17625 (https://www.postgresql.org/message-id/17625-fc47c78b7d71b534%40postgresql.org)
* test: add test to verify register_range() with names requiring escapeDaniele Varrazzo2022-10-061-0/+16
| | | | Unlike for register_composite(), this works already.
* fix: look up for range types defined in schemas in the search pathDaniele Varrazzo2022-10-061-1/+18
|
* fix: correctly handle composites with names or schema requiring escapeDaniele Varrazzo2022-10-061-11/+23
|
* fix: handle types in the search path in register_composite()Daniele Varrazzo2022-10-061-0/+43
| | | | Fix #1487.
* Merge branch 'build-macos-arm64'Daniele Varrazzo2022-07-281-0/+6
|\
| * test: drop test table if existDaniele Varrazzo2022-07-161-0/+6
| | | | | | | | It might be a residue of a psycopg 3 test run in the same db.
* | Unskip tests that work on CockroachDB v22.1Rafi Shamim2022-03-286-21/+29
|/ | | | CockroachDB supports named cursors in v22.1, so more tests pass.
* Raise an error for dates > 10K instead of returning Y9999Daniele Varrazzo2021-11-111-0/+14
| | | | Close #1307.
* Fix representation of sql.Placeholder2_9_1Daniele Varrazzo2021-06-171-16/+12
| | | | | Fix also Placeholder tests, including an error which made an assert always true, which made us miss the regression in #1291.
* Fix regression with named `sql.Placeholder`Daniele Varrazzo2021-06-161-0/+4
| | | | Close #1291.
* Copyright year updated to 2021Daniele Varrazzo2021-06-1527-27/+27
| | | | | ag -l Copyright | xargs sed -i \ "s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*Psycopg Team.*\)/\1-$(date +%Y)\3/I"
* Deprecate the psycopg2.tz moduleDaniele Varrazzo2021-06-152-16/+15
| | | | | Don't use its objects anymore in the tests (except for the tests for the objects themselves).
* Use datetime.timezone as default tzinfo_factory.Daniele Varrazzo2021-06-151-1/+17
|
* Drop support for mx.DateTime objectsDaniele Varrazzo2021-06-141-169/+0
| | | | They are Python 2 only.
* Handle correctly timestamps with fractions of minute in the timezone offsetDaniele Varrazzo2021-06-141-25/+56
| | | | Close #1272.
* Allow libpq tests to failDaniele Varrazzo2021-05-261-1/+4
| | | | They fail on image build when we delete the system library.
* Escape table and column names in cursor.copy_from() and .copy_to()Daniele Varrazzo2021-05-251-0/+18
|
* 'with' starts a transaction even on autocommit connectionsDaniele Varrazzo2021-05-241-0/+87
| | | | Close #941
* Unbreak f-string wrong replacementsDaniele Varrazzo2021-05-201-29/+33
|
* Merge branch 'master' into rm-2.7Daniele Varrazzo2021-05-205-8/+31
|\
| * Fix segfault initialising Column object manuallyDaniele Varrazzo2021-05-201-0/+10
| | | | | | | | Close #1252
| * Accept no param in connect()Daniele Varrazzo2021-05-201-5/+15
| | | | | | | | | | | | More friendly towards ``connect(**parse_dsn())``, and what psycopg3 does. Close #1250
| * docs: fix a few simple typosTim Gates2021-05-202-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are small typos in: - doc/src/faq.rst - psycopg/cursor_type.c - psycopg/xid_type.c - scripts/make_errorcodes.py - scripts/make_errors.py - tests/dbapi20.py - tests/test_connection.py Fixes: - Should read `publicly` rather than `publically`. - Should read `unicode` rather than `uniconde`. - Should read `supposed` rather than `suppsed`. - Should read `something` rather than `somenthing`. - Should read `portable` rather than `portible`. - Should read `exhausted` rather than `exausted`. - Should read `compliance` rather than `compiliance`. Closes #1275
| * Skip test_encrypt_server for CockroachDBRafi Shamim2021-04-212-0/+2
| |
| * Skip test_9_6_diagnostics test for CRDBarulajmani2020-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | Previously, the CRDB's pg server version was 9.5, which meant this test wasn't run as it is skipped for versions 9.6 and before. Now that the server version of CRDB is 13, this check no longer applies. This patch explicitly skips test_9_6_diagnostics for CRDB. The reason for this is the same as test_9_3_diagnostics, which is currently skipped for CRDB.
* | Merge branch 'master' into rm-2.7Hugo van Kemenade2020-11-181-0/+7
|\ \ | |/
| * Classify connection exceptions as operational errors to better conform with ↵Justas Sadzevicius2020-11-171-0/+7
| | | | | | | | PEP 249
* | Upgrade f-strings with flynt -a and remove int()Hugo van Kemenade2020-11-184-4/+4
| |
* | Upgrade f-strings with flyntHugo van Kemenade2020-11-1715-91/+78
| |
* | Drop support for EOL Python 2.7Hugo van Kemenade2020-11-171-224/+0
| |
* | Upgrade Python syntax with pyupgrade --py36-plusHugo van Kemenade2020-11-1722-105/+101
| |
* | Drop support for EOL Python 2.7Hugo van Kemenade2020-11-1711-358/+72
|/
* 'cursor.query' reports the query of the last COPY opearation tooDaniele Varrazzo2020-09-051-0/+22
| | | | Close #1141.
* Added duplicate values to errcodes moduleDaniele Varrazzo2020-09-051-0/+8
| | | | Close #1133
* Python 2 compatibilitycockroachdb-testsDaniele Varrazzo2020-08-171-2/+2
|
* Added possibility to skip a test only on certain crdb versionsDaniele Varrazzo2020-08-171-4/+27
|
* Added ticket numbers for the tests skipped on crdbDaniele Varrazzo2020-08-171-0/+27
|
* Added missing reasons for crdb skipDaniele Varrazzo2020-08-173-7/+10
| | | | Added check to make sure a reason must be passed.
* Added reason for skipping on CockroachDBDaniele Varrazzo2020-07-2719-89/+97
|
* Types tests adapted to CockroachDBDaniele Varrazzo2020-07-232-14/+29
|
* Several other tests skipped for CockroachDBDaniele Varrazzo2020-07-229-14/+34
| | | | The only remaining test modules in this branch are test_types_basic/extra.
* Some extra cursors test skipped on CockroachDBDaniele Varrazzo2020-07-222-3/+21
| | | | Skip named cursor tests
* Skip a few date tests on CockroachDBDaniele Varrazzo2020-07-221-1/+4
| | | | | | - Infinity gets converted to large dates in the past/future out of Python range - Timestamps get an UTC timezone attached
* Cursor tests adapted to CockroachDBDaniele Varrazzo2020-07-211-223/+231
| | | | Named cursor tests separated to skip all in one go
* Get CockroachDB version from the connection infoDaniele Varrazzo2020-07-211-14/+11
|
* Skip copy tests on CockroachDBDaniele Varrazzo2020-07-211-1/+5
|
* Skip connection tests which cannot pass on CockroachDBDaniele Varrazzo2020-07-212-1/+36
| | | | | | | | | | | Features not supported seem: - isolation level (always serializable) - client encodings - notices (maybe there is a way to generate them) - 2 phase commit - reset (because of the lack of transaction deferrable) - backend pid
* Expose libpq PG* vars as testconfig contentDaniele Varrazzo2020-07-211-4/+4
|