diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2016-10-05 19:52:58 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2016-10-21 14:09:54 -0300 |
commit | 09a62dd1d6b076fcc7ac001d0b998ebb119feaad (patch) | |
tree | 0e5795aab017cd78e200e04a1a08f5ad1d800e9f /testing/tests | |
parent | 28eb55c8388fa0dd713471d1c3334ef4ccb49ae4 (diff) |
[tests] make check_schema_versions default to False
CouchServerState is spread across test codebase and this option is
intended to be used only on server startup. This commit makes it default
to False and explicitly set it to True on where it's necessary.
Diffstat (limited to 'testing/tests')
-rw-r--r-- | testing/tests/couch/test_state.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/tests/couch/test_state.py b/testing/tests/couch/test_state.py index a53ba076..e293b5b8 100644 --- a/testing/tests/couch/test_state.py +++ b/testing/tests/couch/test_state.py @@ -14,10 +14,12 @@ def test_wrong_couch_version_raises(db): db.database.create( {'_id': CONFIG_DOC_ID, SCHEMA_VERSION_KEY: wrong_schema_version}) with pytest.raises(WrongCouchSchemaVersionError): - CouchServerState(db.couch_url, create_cmd='/bin/echo') + CouchServerState(db.couch_url, create_cmd='/bin/echo', + check_schema_versions=True) def test_missing_config_doc_raises(db): db.database.create({}) with pytest.raises(MissingCouchConfigDocumentError): - CouchServerState(db.couch_url, create_cmd='/bin/echo') + CouchServerState(db.couch_url, create_cmd='/bin/echo', + check_schema_versions=True) |