1. Ronny Pfannschmidt
  2. pytest-couchdbkit

Commits

Ronny Pfannschmidt  committed 148b4ae

update some missed test slaveinput locations

  • Participants
  • Parent commits da766bb
  • Branches default
  • Tags v0.5

Comments (0)

Files changed (1)

File testing/test_hooks.py

View file
     request.config.getini.side_effect = settings.get
     request.getfuncargvalue.side_effect = lambda name: funcargs(name, request)
     request.tmpdir = tmpdir
-    request.slaveinput = None
+    request.config.slaveinput = None
     return request
 
 
     assert tmpdir.join('couchdb.dump').check()
 
 def test_database_on_slavenode(request):
-    request.slaveinput= {'slaveid': 'gw1'}
+    request.config.slaveinput = {'slaveid': 'gw1'}
     db = pytest_couchdbkit.pytest_funcarg__couchdb(request)
     assert 'gw1' in db.dbname
 
 
 
 def test_sessionstart_with_config_calls_hook():
-    settings = {'couchdbkit_suffix':'test'}
+    settings = {'couchdbkit_suffix': 'test'}
     session = mock.Mock()
     session.config.getini.side_effect = settings.get
     session.config.slaveinput = None