summaryrefslogtreecommitdiff
path: root/tests/test_replication.py
Commit message (Collapse)AuthorAgeFilesLines
* Use relative imports throughout testsJon Dufresne2017-12-101-3/+3
| | | | | | | | | | | | | | 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/
* Always import the system unittestJon Dufresne2017-12-011-1/+2
| | | | | | | There is no need to import testutils.unittest instead of simply unittest. They are simple aliases. Use system unittest to be more regular, consistent as well as idiomatic with the wider Python community.
* Accept Composable in start_replication_expert()Daniele Varrazzo2017-06-171-0/+14
| | | | Close #554
* Fixed args parsing in ReplicationCursor.consume_stream()Daniele Varrazzo2017-04-191-0/+23
| | | | Close #547.
* Added async_ as an alias for asyncDaniele Varrazzo2017-02-031-1/+1
| | | | | Added in argument for psycopg2.connect() and connection.__init__, and for the connection.async attribute.
* Skip replication tests in green modeDaniele Varrazzo2016-12-251-3/+8
|
* Added test to verify bug #482Daniele Varrazzo2016-12-251-2/+15
|
* Fixed tests failing on Python 2.6Daniele Varrazzo2016-12-241-4/+0
|
* Python source cleanup using flake8Daniele Varrazzo2016-10-111-21/+39
|
* Fix error test for invalid START_REPLICATION command.Oleksandr Shulgin2016-01-211-2/+8
|
* Allow retrying start_replication after syntax or data error.Oleksandr Shulgin2016-01-051-0/+13
|
* Drop ReplicationCursor.flush_feedback(), rectify pq_*_replication_*() interface.Oleksandr Shulgin2015-10-231-1/+1
|
* Properly subclass ReplicationCursor on C level.Oleksandr Shulgin2015-10-191-4/+16
|
* Improve async replication test.Oleksandr Shulgin2015-10-191-35/+48
|
* Replace stop_replication with requirement for an exception.Oleksandr Shulgin2015-10-191-14/+31
|
* Fix PSYCOPG2_TEST_REPL_DSN handling.Oleksandr Shulgin2015-10-161-0/+16
|
* Fix async replication and test.Oleksandr Shulgin2015-10-151-0/+123