summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow strings subclasses in ensure_bytesfix-679Daniele Varrazzo2018-02-211-0/+14
| | | | Fix #679
* Silence warning on import failing a testDaniele Varrazzo2018-01-291-1/+5
|
* Fixed idempotence check changing connection characteristicsDaniele Varrazzo2018-01-111-0/+10
|
* Use relative imports throughout testsJon Dufresne2017-12-101-2/+2
| | | | | | | | | | | | | | The tests relied on Python2 relative import semantics. Python3 changed import semantics to always search sys.path by default. To import using a relative path it must have a leading dot. Forward compatible with newer Pythons. Works towards the goal of moving tests outside of the installed package. For more information, see PEP-328: https://www.python.org/dev/peps/pep-0328/
* Remove unnecessary script_to_py3; make scripts compatible insteadJon Dufresne2017-12-011-2/+2
| | | | Part of the work towards moving tests out of the installed package.
* Drop support for EOL Python 2.6Hugo2017-11-281-2/+1
|
* Use modern except syntax throughout projectJon Dufresne2017-11-201-2/+2
| | | | | | The syntax "except Exception, exc:" is deprecated. All Python versions supported by psycopg2 support the newer, modern syntax. Forward compatible with future Python versions.
* Skipped a couple of test with unsupported postgres featuresDaniele Varrazzo2017-07-221-0/+1
|
* Ignore spurious output in test with Python debug buildDaniele Varrazzo2017-06-171-0/+3
|
* Don't force a valid return code for the testDaniele Varrazzo2017-06-151-1/+1
| | | | Windows returns 22, Linux returns 1
* Added test to reproduce bug #551Daniele Varrazzo2017-06-151-1/+57
|
* Obscure the password on url dsn tooDaniele Varrazzo2017-03-161-7/+4
| | | | | | Note that we don't leak anymore the password length. Fix #528
* Added tests to verify the password is obscuredDaniele Varrazzo2017-03-151-0/+40
| | | | The url test fails: see issue #528
* Bunch of test tweaks to make the test grid greenDaniele Varrazzo2017-03-141-10/+2
|
* Ignore None arguments passed to make_dsn()fix-517Daniele Varrazzo2017-03-011-0/+4
| | | | Close #517.
* Added readonly and deferrable attributesDaniele Varrazzo2017-02-161-15/+112
|
* Revert pre-2.7b1 behaviour of silent rollback on conn.set_isolation_level()Daniele Varrazzo2017-02-161-6/+26
| | | | Legacy method is legacy.
* connection.isolation_level is now writableDaniele Varrazzo2017-02-161-78/+179
|
* Merge branch 'no-set-default-session'Daniele Varrazzo2017-02-071-53/+54
|\
| * Set default_transaction_* GUC if session state is changed in autocomitDaniele Varrazzo2017-02-041-24/+25
| |
| * Exposing ISOLATION_LEVEL_DEFAULT to PythonDaniele Varrazzo2017-02-041-1/+1
| | | | | | | | | | This is now the state that is returned to Python if nothing has been explicitly set.
| * Test looking the transactions characteristics instead of the defaultDaniele Varrazzo2017-02-041-28/+28
| | | | | | | | | | | | So we test the effect, not the implementation. Tests pass on master too this way, three tests fail in this branch, related to autocommit (sort-of-obviously).
* | assertDsnEqual moved as TestSuite methodDaniele Varrazzo2017-02-061-5/+5
|/
* Merge branch 'async-keyword'Daniele Varrazzo2017-02-031-8/+5
|\ | | | | | | Close #495
| * Added async_ as an alias for asyncDaniele Varrazzo2017-02-031-8/+5
| | | | | | | | | | Added in argument for psycopg2.connect() and connection.__init__, and for the connection.async attribute.
* | Further skipping of slow testsDaniele Varrazzo2017-02-021-0/+2
| |
* | Allow skipping the slow testmanylinuxDaniele Varrazzo2017-02-021-1/+5
|/ | | | | | | | It's not so much about tests being slow: some just get stuck and timeout travis. Skipped all tests taking about more than 0.2s to run on my laptop. Fast testing takes about 8s instead of 24.
* Fixed tests failing on Python 2.6Daniele Varrazzo2016-12-241-1/+1
|
* Python source cleanup using flake8Daniele Varrazzo2016-10-111-20/+35
|
* Merge branch 'master' into replication-protocolDaniele Varrazzo2016-08-071-0/+7
|\ | | | | | | | | Conflicts: tests/testconfig.py
| * Merge branch 'conn-get-parameters'Daniele Varrazzo2016-07-011-0/+7
| |\
| | * Add skip_before_libpq for test_get_dsn_parametersOleksandr Shulgin2015-10-301-0/+1
| | |
| | * Fix typo in a new test nameOleksandr Shulgin2015-10-301-1/+1
| | |
| | * Add connection.get_dsn_parameters()Oleksandr Shulgin2015-10-301-0/+6
| | |
* | | Merge branch 'master' into feature/replication-protocol-c-connection-objectOleksandr Shulgin2016-03-041-34/+95
|\ \ \ | |/ /
| * | Allow make_dsn to take no parameterDaniele Varrazzo2016-03-031-2/+2
| | | | | | | | | | | | | | | The behaviour of connect() is unchanged: either dsn or params must be specified.
| * | Validate output result from make_dsn()Daniele Varrazzo2016-03-031-20/+31
| | | | | | | | | | | | | | | The output is not necessarily munged anyway: if no keyword is passed, validate the input but return it untouched.
| * | Test that the empty dsn is a valid make_dsn inputDaniele Varrazzo2016-03-031-0/+4
| | |
| * | Added test suite specific for make_dsnDaniele Varrazzo2016-03-031-35/+82
| |/
* | Fix async replication and test.Oleksandr Shulgin2015-10-151-49/+0
| |
* | Use quote_ident from psycopg2.extensionsOleksandr Shulgin2015-10-151-0/+14
| |
* | Update stop_repl, require replication consumer to be a callable.Oleksandr Shulgin2015-10-141-1/+5
| |
* | Fix stop_replication: always raise outside the loop.Oleksandr Shulgin2015-10-141-0/+12
| |
* | Fix ReplicationTest: no NotSupportedError now.Oleksandr Shulgin2015-10-141-5/+13
|/
* Drop spurious notices in testDaniele Varrazzo2015-10-011-1/+2
| | | | Getting some "rehashing catalog" debug messages in PG 9.4
* Added unicode support to parse_dsnDaniele Varrazzo2015-10-011-3/+23
| | | | Also added support for the argument as a keyword.
* Fixed parse_dsn tests on Python 3Daniele Varrazzo2015-10-011-2/+2
| | | | On Python 3 there is no Exception.message attribute.
* Separate parse_dsn test in a test case of their ownDaniele Varrazzo2015-10-011-0/+2
|
* Merge branch 'master' into parse-dsnDaniele Varrazzo2015-10-011-0/+48
|\
| * Report NotSupportedError for PGRES_COPY_BOTH and PGRES_SINGLE_TUPLEDaniele Varrazzo2015-09-301-0/+12
| | | | | | | | Fixes #352.