def provisioner(): """Create dummy manual provisioner.""" create_kwargs = { 'name': 'Fixtured provisioner', 'engine': 'kqueen.engines.ManualEngine', } return Provisioner.create(**create_kwargs)
def provisioner(): """Create dummy manual provisioner.""" _user = user() create_kwargs = { 'name': 'Fixtured provisioner', 'engine': 'kqueen.engines.ManualEngine', 'owner': _user } return Provisioner.create(_user.namespace, **create_kwargs)
def __init__(self, test_user=None): if test_user is None: test_user = UserFixture() self.test_user = test_user owner = test_user.obj create_kwargs = { 'name': 'Fixtured provisioner', 'engine': 'kqueen.engines.ManualEngine', 'owner': owner } self.obj = Provisioner.create(owner.namespace, **create_kwargs)