1. Ronny Pfannschmidt
  2. pytest-couchdbkit

Commits

Ronny Pfannschmidt  committed 141d7cb

create a hook for pushing apps

  • Participants
  • Parent commits 98697fa
  • Branches default

Comments (0)

Files changed (2)

File pytest_couchdbkit/__init__.py

View file
     parser.addini('couchdbkit_backend', 'socketpool backend we should use', default='thread')
     parser.addini('couchdbkit_suffix', 'database name suffix')
 
+
+def pytest_addhooks(pluginmanager):
+    from . import hookspec
+    pluginmanager.addhooks(hookspec)
+
+
 def pytest_funcarg__couchdb_server(request):
     from couchdbkit import Server
     return Server(backend=request.config.getini('couchdbkit_backend'))

File pytest_couchdbkit/hookspec.py

View file
+
+
+def pytest_couchdbkit_push_app(database):
+    """
+    invoked to push couchapps to a replication source database
+    that is replicated to the target for each test
+    """