Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2018
107
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ cat test_populator.py
  2. from pytest import fixture
  3.  
  4.  
  5. @fixture(scope='session')
  6. def custom_settings():
  7. return {
  8. 'kotti.populators': 'mypackage.populate.populate',
  9. }
  10.  
  11.  
  12. @fixture
  13. def config(config):
  14. config.include('mypackage.events')
  15. return config
  16.  
  17.  
  18. def test_populator(app, content, root):
  19. ...
Advertisement
RAW Paste Data Copied
Advertisement