Skip to content

Commit 8330698

Browse files
committedFeb 9, 2023
PYCBC-1438: Update Python 4.x Test Framework
Motivation ========== In order to provide more stability to the CI/CD pipeline the test framework should be reworked to not rely on creating a connection for each test suite. The unneccesary number of connections can create instability. Modification ============ Reworked the test framework to have a global connection that can be reused. Only specific tests or test suites that need a new connection create a connection now. Creating of docs and removing has also been updated so as to allow for bulk insert/removal further reducing the time for tests to complete. Results ======= All tests pass. Change-Id: I9f449b65bbcbe060699adfb7a0082e9f34ff3b13 Reviewed-on: https://review.couchbase.org/c/couchbase-python-client/+/186267 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: David Kelly <davidmichaelkelly@gmail.com>
1 parent 1d9801b commit 8330698

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+13554
-10408
lines changed
 

‎.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ repos:
6969
txcouchbase/tests/|
7070
couchbase/tests/|
7171
tests/mock_server.py|
72+
tests/environments/|
7273
simple_acouchbase.py|
7374
simple_couchbase.py|
7475
simple_txcouchbase.py|

‎conftest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
import pytest
1717

1818
pytest_plugins = [
19-
"tests.helpers"
19+
# "tests.helpers"
20+
'tests.couchbase_config',
21+
'tests.environments.test_environment'
2022
]
2123

2224
_DIAGNOSTIC_TESTS = [

0 commit comments

Comments
 (0)