Ejemplo n.º 1
0
 def setup_method(self, method):
     self.app = app.test_client()
Ejemplo n.º 2
0
 def setup_method(self, method):
     self.app = app.test_client()
Ejemplo 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()
Ejemplo n.º 4
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()