Esempio n. 1
0
 def setup_method(self, method):
     self.app = app.test_client()
 def setup_method(self, method):
     self.app = app.test_client()
Esempio n. 3
0
from remote_install import db, app
import testing.util
from remote_install.models.user import User
from remote_install.models.installer import Installer
from remote_install.models.machine import MachineTemplate, Machine
from remote_install.models.job import Job
from remote_install.machine_control.stub import StubMachineControl
import os

test_app = app.test_client()

machine_control = StubMachineControl()


def get_machine_control():
    return machine_control


class TestFuncJobcreate():
    @classmethod
    def setup_class(cls):
        db.create_all()
        testing.util.prime_db(db)

    @classmethod
    def teardown_class(cls):
        db.drop_all()

    def setup_method(self, method):
        self.app = app.test_client()
from remote_install import db, app
import testing.util
from remote_install.models.user import User
from remote_install.models.installer import Installer
from remote_install.models.machine import MachineTemplate, Machine
from remote_install.models.job import Job
from remote_install.machine_control.stub import StubMachineControl
import os

test_app = app.test_client()


machine_control = StubMachineControl()

def get_machine_control():
    return machine_control

class TestFuncJobcreate():

    @classmethod
    def setup_class(cls):
        db.create_all()
        testing.util.prime_db(db)

    @classmethod
    def teardown_class(cls):
        db.drop_all()

    def setup_method(self, method):
        self.app = app.test_client()