The pouchdb.tests package
Use the [source] links to show the code behind the tests, which contain
useful examples on how to use Python-PouchDB.
PouchDB test cases
Test cases for the pouchdb package.
-
class pouchdb.tests.main.AsyncAllDbsTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCase
-
testAll()[source]
-
class pouchdb.tests.main.AsyncAllDocsTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testAllDocsWithEmptyDB()[source]
-
class pouchdb.tests.main.AsyncAuthenticationTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBHTTPTestCase, pouchdb.tests.main.AuthenticationMixin
-
onGetSession(err, resp)[source]
-
onGetUser(err, resp)[source]
-
onLogIn(err, resp)[source]
-
onLogOut(err, resp)[source]
-
onSignUp(err, resp)[source]
-
tearDown()[source]
-
testAuth()[source]
Handles the actual test.
-
class pouchdb.tests.main.AsyncBulkDocsTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testSimpleBulkDocs()[source]
-
class pouchdb.tests.main.AsyncChangesTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndDoc
-
testAsync()[source]
-
testLive()[source]
-
class pouchdb.tests.main.AsyncCompactTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testCompactOnEmptyDB()[source]
-
class pouchdb.tests.main.AsyncDestroyTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndDoc
-
testGlobalDestroy()[source]
-
testGlobalDestroyWithNameOption()[source]
-
testInstanceDestroy()[source]
-
class pouchdb.tests.main.AsyncGQLTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndDoc
-
testSelectWhereGql()[source]
-
class pouchdb.tests.main.AsyncGetAttachmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndAttachment
-
testGetAttachmentAsync()[source]
-
testMissingAttachmentAsync()[source]
-
class pouchdb.tests.main.AsyncGetTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndDoc
-
testSimpleGet()[source]
-
class pouchdb.tests.main.AsyncInfoTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB, pouchdb.tests.main.InfoVerifierMixin
-
testInfoAsync()[source]
-
class pouchdb.tests.main.AsyncPostTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testSimplePost()[source]
-
class pouchdb.tests.main.AsyncPutAttachmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testPutAttachmentAsync()[source]
-
class pouchdb.tests.main.AsyncPutTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testAsyncPut()[source]
-
testPutProvidingId()[source]
-
class pouchdb.tests.main.AsyncQueryTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testQueryWithEmptyDB()[source]
-
class pouchdb.tests.main.AsyncRemoveAttachmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndAttachment
-
testRemoveAttachmentAsync()[source]
-
testRemoveAttachmentFromUnexistingDocAsync()[source]
-
testRemoveUnexistingAttachmentAsync(*args, **kwargs)[source]
-
class pouchdb.tests.main.AsyncRemoveTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndDoc
-
testSimpleRemove()[source]
-
class pouchdb.tests.main.AsyncReplicateTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDBAndDoc
-
tearDown()[source]
-
testGlobalSync()[source]
-
testLive()[source]
-
testLocalSync()[source]
-
testReplicateFromWithCallback()[source]
-
testReplicateToWithCallback()[source]
-
testReplicateWithOnComplete()[source]
-
class pouchdb.tests.main.AsyncRevsDiffTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testSimpleRevsDiff()[source]
-
class pouchdb.tests.main.AsyncSearchTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB, pouchdb.tests.main.SearchTestsMixin
-
setUp()[source]
-
testBasic()[source]
-
class pouchdb.tests.main.AsyncSpatialTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB, pouchdb.tests.main.SpatialTestsMixin
-
testSpatial()[source]
Based on the first test in the geopouch test suite.
-
class pouchdb.tests.main.AsyncViewCleanupTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
testBasic()[source]
-
class pouchdb.tests.main.AuthenticationMixin[source]
Bases: object
-
class pouchdb.tests.main.ContextTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCase
-
testAttributeError()[source]
-
testCircular()[source]
-
testDebug()[source]
-
testException()[source]
-
testInspect()[source]
-
class pouchdb.tests.main.ContextTestsWithDb(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testDbSizeOfExistingsDB()[source]
-
testDbSizeOfUnexisting()[source]
-
class pouchdb.tests.main.EnvironmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCase
-
testInvalidDbName()[source]
-
testSecondEnvironmentDifferentDir()[source]
-
testTempDirEnv()[source]
-
testVersion()[source]
-
class pouchdb.tests.main.EventTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCase
The sync and async implementains are the same (as in, implemented
in the base class), so there are no async tests.
-
tearDown()[source]
-
testListeners()[source]
-
testOnceAndEmit()[source]
-
testPouchCreatedEvent()[source]
-
testPouchDestroyedEvent()[source]
-
testRemoveAllListenersWithArg()[source]
-
testRemoveAllListenersWithoutArg()[source]
-
testRemoveListener()[source]
-
testSetMaxListeners()[source]
-
class pouchdb.tests.main.InfoVerifierMixin[source]
Bases: object
-
verifyInfo(info)[source]
-
class pouchdb.tests.main.MainHTTPTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBHTTPTestCase
-
testAttachment()[source]
-
testReplication()[source]
-
testSomeSimpleMethods()[source]
-
class pouchdb.tests.main.MutableMappingHTTPTests(methodName='runTest')[source]
Bases: pouchdb.tests.main.AuthenticationMixin, pouchdb.tests.utils.SyncPouchDBHTTPTestCase
-
tearDown()[source]
-
testNonNotFoundMappingGetError()[source]
-
class pouchdb.tests.main.MutableMappingTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
testEqual()[source]
-
testOverwrite()[source]
-
class pouchdb.tests.main.SearchTestsMixin[source]
Bases: object
-
class pouchdb.tests.main.SpatialTestsMixin[source]
Bases: object
-
class pouchdb.tests.main.SyncAllDbsTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCase
Since the allDbs() thing is almost non-deterministic in a test
suite, we don’t really test functionality. Just if the methods don’t
crash. And that’s fine: functionality is tested by upstream.
-
testBasic()[source]
-
testLen()[source]
__len__ also uses the allDbs plug-in internally.
-
testReset()[source]
-
class pouchdb.tests.main.SyncAllDocsTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testAllDocsWithEmptyDB()[source]
-
testAllDocsWithNonEmptyDB()[source]
-
class pouchdb.tests.main.SyncAuthenticationTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBHTTPTestCase, pouchdb.tests.main.AuthenticationMixin
-
tearDown()[source]
-
testAliases()[source]
-
testAuth()[source]
-
class pouchdb.tests.main.SyncBulkDocsTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testSimpleBulkDocs()[source]
-
class pouchdb.tests.main.SyncChangesTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
testLive()[source]
-
testSimple()[source]
-
class pouchdb.tests.main.SyncCompactTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testCompactOnEmptyDB()[source]
-
testCompactOnNonEmptyDB()[source]
-
class pouchdb.tests.main.SyncDestroyTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
testGlobalDestroy()[source]
-
testGlobalNoName()[source]
-
testInstanceDestroy()[source]
-
class pouchdb.tests.main.SyncGQLTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
testInvalidQueryFormat()[source]
-
testSelectWhereGql()[source]
-
class pouchdb.tests.main.SyncGetAttachmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndAttachment
-
testMissingAttachment()[source]
-
testMissingDoc()[source]
-
testSimpleGetAttachment()[source]
-
class pouchdb.tests.main.SyncGetTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
testMissingDoc()[source]
-
testSimpleGet()[source]
-
class pouchdb.tests.main.SyncInfoTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB, pouchdb.tests.main.InfoVerifierMixin
-
testSimpleInfo()[source]
-
class pouchdb.tests.main.SyncPostTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testSimplePost()[source]
-
class pouchdb.tests.main.SyncPutAttachmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testPutTwoAttachmentsInSameDoc()[source]
-
testSimplePutAttachment()[source]
-
class pouchdb.tests.main.SyncPutTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testJsonPut()[source]
-
testSimplePut()[source]
-
class pouchdb.tests.main.SyncQueryTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testAllDocsWithNonEmptyDB()[source]
-
testQueryWithEmptyDB()[source]
-
class pouchdb.tests.main.SyncRemoveAttachmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndAttachment
-
testRemoveAttachmentFromUnexistingDoc()[source]
-
testRemoveUnexistingAttachment(*args, **kwargs)[source]
-
testSimpleRemoveAttachment()[source]
-
class pouchdb.tests.main.SyncRemoveTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
testSimpleRemove()[source]
-
class pouchdb.tests.main.SyncReplicateTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
tearDown()[source]
-
testGlobalSync()[source]
-
testLive()[source]
-
testLocalSync()[source]
-
testSimpleReplicate()[source]
-
testSimpleReplicateFrom()[source]
-
testSimpleReplicateTo()[source]
-
class pouchdb.tests.main.SyncRevsDiffTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testSimpleRevsDiff()[source]
-
class pouchdb.tests.main.SyncSearchTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB, pouchdb.tests.main.SearchTestsMixin
-
setUp()[source]
-
testBasic()[source]
-
class pouchdb.tests.main.SyncSpatialTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB, pouchdb.tests.main.SpatialTestsMixin
-
testSpatial()[source]
Based on the first test in the geopouch test suite.
-
class pouchdb.tests.main.SyncViewCleanupTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testBasic()[source]
Objectstorage test cases
Test cases for the pouchdb.objectstorage module.
-
class pouchdb.tests.objectstorage.ObjectStorageTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testPrefix()[source]
-
testStoreAgainAfterUpdate()[source]
-
testWithoutId()[source]
-
class pouchdb.tests.objectstorage.Person(name, birth=None)[source]
Bases: object
-
sayHello(f=<open file '<stdout>', mode 'w' at 0x7f4461977150>)[source]
Mapping test cases
Test cases for the pouchdb.mapping module.
-
class pouchdb.tests.mapping.DocWithViews(_jsonSource=False, **values)[source]
Bases: pouchdb.mapping.Document
-
otherView = <ViewField 'test'>
-
syntaxErrorView = <ViewField 'test'>
-
class pouchdb.tests.mapping.NoStorageMappingTests(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
testClassAccess()[source]
-
testDateField()[source]
-
testDeletingField()[source]
-
testNonFunctionDefault()[source]
-
testTimeField()[source]
-
testUnrecognizedKwarg()[source]
-
class pouchdb.tests.mapping.StorageMappingTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testAsDictAfterStore()[source]
-
testViews()[source]
-
class pouchdb.tests.mapping.Test(_jsonSource=False, **values)[source]
Bases: pouchdb.mapping.Document
-
test
Mapping field for float values.
Plug-in test cases
Test cases for the various plug-ins that are developed alongside
Python-PouchDB and have their test suites coded in Python.
-
class pouchdb.tests.plugins.AlternateSignatureTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
Tests alternative signatures for the internally developed
plug-ins that ship with Python-PouchDB. Hard to do via the Python
interface since that interface uses a fixed JS signature regardless
of which Python signature is used. (At least mostly)
-
testList()[source]
-
testRewrite()[source]
-
testShow()[source]
-
testUpdate()[source]
-
testValidatingPost()[source]
-
class pouchdb.tests.plugins.AsyncListTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testArgs()[source]
-
class pouchdb.tests.plugins.AsyncRewriteTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testBasicResp()[source]
-
testBasicUrl()[source]
-
class pouchdb.tests.plugins.AsyncShowTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testShowWithoutDoc()[source]
-
testUnexistingDDoc()[source]
-
class pouchdb.tests.plugins.AsyncUpdateTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testException()[source]
-
class pouchdb.tests.plugins.AsyncUpdateWithEmptyDesignDocTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testBasic()[source]
-
class pouchdb.tests.plugins.AsyncValidationTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.AsyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testFailingRemoveAttachment()[source]
-
testSuccessfulBulkDocs()[source]
-
testSuccessfulPost()[source]
-
testSuccessfulPut()[source]
-
testSuccessfulPutAttachment()[source]
-
testSuccessfulRemove()[source]
-
class pouchdb.tests.plugins.PluginHTTPTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBHTTPTestCase
-
testList()[source]
-
testRewrite()[source]
-
testShow()[source]
-
testUpdate()[source]
-
testValidation()[source]
-
testWrongListContentType()[source]
CouchDB only supports application/json here. It’s a CouchDB
restriction: this check is here in case it ever changes. - then
PouchDB-List’s simulation of it can stop.
-
class pouchdb.tests.plugins.SyncCouchDBBasedRewriteTests(methodName='runTest')[source]
Bases: unittest.case.TestCase
Based on CouchDB’s rewrite test suite: rewrite.js. Not every test
has yet been ported, but a large amount has been.
Original test source:
https://github.com/apache/couchdb/blob/master/share/www/script/test/rewrite.js
-
classmethod setUpClass()[source]
-
classmethod tearDownClass()[source]
-
testBasicShow()[source]
-
testBasicUpdate()[source]
-
testBasicView()[source]
-
testComplexView6WithQuery()[source]
-
testDbWithArgs()[source]
-
testRootRewrite()[source]
-
testSimpleFormBasicView()[source]
-
testSimpleFormBasicViewFixed()[source]
-
testSimpleFormBasicViewFixedDifferentQuery()[source]
-
testSimpleFormComplexView()[source]
-
testSimpleFormComplexView2()[source]
-
testSimpleFormComplexView3()[source]
-
testSimpleFormComplexView4()[source]
-
testSimpleFormComplexView5WithArgs()[source]
-
testSimpleFormComplexView7WithArgsAndQuery()[source]
-
testSimpleRewriting()[source]
-
testSimpleViewBasicViewPath()[source]
-
testWelcome3Test()[source]
-
testWelcome4User()[source]
-
testWelcome5Welcome3()[source]
-
class pouchdb.tests.plugins.SyncListTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testArgs()[source]
-
testCouchEval()[source]
-
testListApi()[source]
-
testUnexistingDesignDoc()[source]
-
testUnexistingListFunc()[source]
-
testUnexistingView()[source]
-
testWrongContentType()[source]
CouchDB only supports application/json here. It’s a CouchDB
restriction: probably best to emulate it...
-
class pouchdb.tests.plugins.SyncListTestsWithEmptyDesignDoc(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
test()[source]
-
class pouchdb.tests.plugins.SyncRewriteTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
putRewrite(rewrite)[source]
-
testAllDbsRewrite()[source]
-
testAttachmentRewrite()[source]
-
testBadPath()[source]
-
testHighUpPath()[source]
-
testLocalDocRewrite()[source]
-
testPostDocRewrite()[source]
-
class pouchdb.tests.plugins.SyncRewriteTestsWithInvalidDesignDoc(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
testEmptyDesignDoc()[source]
-
testEmptyRewrites()[source]
-
testInvalidRewrites()[source]
-
testMissingTo()[source]
-
class pouchdb.tests.plugins.SyncShowTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
setUp()[source]
-
testCustomProvider()[source]
-
testFormatWhenEmptyShowFunc()[source]
-
testInvalidRespObj()[source]
-
testInvalidReturnTypeAndProvides()[source]
-
testInvalidSyntax()[source]
-
testNoFunc()[source]
-
testNoMatchingProvider()[source]
-
testOldStyleJson()[source]
-
testOverwriteArgs()[source]
-
testProvidersDefault()[source]
-
testProvidersFormat()[source]
-
testSettingForm()[source]
-
testSettingQuery()[source]
-
testShowArgs()[source]
-
testShowWithDoc()[source]
-
testShowWithoutDoc()[source]
-
testShowWithoutDocAndDifferentEnv()[source]
-
testThrowingError()[source]
-
testThrowingErrorInProvides()[source]
-
testUnexistingDDoc()[source]
-
testUnexistingDoc()[source]
-
testUnexistingFormat()[source]
-
testUnexistingShowFunc()[source]
-
testWithDesignDocAsArg()[source]
-
testWithFakeDesignDocAsArg()[source]
-
class pouchdb.tests.plugins.SyncShowTestsWithEmptyDesignDoc(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
-
test()[source]
-
class pouchdb.tests.plugins.SyncUpdateTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
setUp()[source]
-
testArgs()[source]
-
testArgsWithoutDoc()[source]
-
testSaving()[source]
-
testUnexistingFunction()[source]
-
class pouchdb.tests.plugins.SyncValidationArgsTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
-
setUp()[source]
-
testArgsWithExistingDoc()[source]
-
testArgsWithNewDoc()[source]
-
testChangingSecObj()[source]
-
testChangingUserCtx()[source]
-
class pouchdb.tests.plugins.SyncValidationAttachmentTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndAttachment
-
setUp()[source]
-
testPutAttachmentSuccess()[source]
-
testPutAttachmentWhenForbidden()[source]
-
testRemoveAttachmentSuccess()[source]
-
testRemoveAttachmentWhenForbidden()[source]
-
class pouchdb.tests.plugins.SyncValidationCompilationErrorTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
See the note at the ValidationSuccessTests class
-
testNonFunctionError()[source]
-
testSyntaxError()[source]
-
class pouchdb.tests.plugins.SyncValidationExceptionTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
See the note at the ValidationSuccessTests class
-
setUp()[source]
-
testPut()[source]
-
class pouchdb.tests.plugins.SyncValidationForbiddenTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
See the note at the ValidationSuccessTests class
-
setUp()[source]
-
testDesignDoc()[source]
A design doc is always valid, so no matter the
validate_doc_update function, the stuff below should succeed.
-
testInvalidBulkDocs()[source]
-
testInvalidPost()[source]
-
testInvalidPut()[source]
-
testInvalidRemove()[source]
-
class pouchdb.tests.plugins.SyncValidationSuccessTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDB
Where the other tests just check if the wrappers work and are
barely checking behaviour, the validation tests do more. That is
because the other things have JS test suites, and the validation
plugin doesn’t.
-
setUp()[source]
-
testSuccessfulBulkDocs()[source]
-
testSuccessfulPost()[source]
-
testSuccessfulPut()[source]
-
testSuccessfulRemove()[source]
-
class pouchdb.tests.plugins.SyncValidationUnauthorizedTests(methodName='runTest')[source]
Bases: pouchdb.tests.utils.SyncPouchDBTestCaseWithDBAndDoc
See the note at the ValidationSuccessTests class
-
setUp()[source]
-
testInvalidBulkDocs()[source]
-
testInvalidPost()[source]
-
testInvalidPut()[source]
-
testInvalidRemove()[source]