Esempio n. 1
0
    def setUp(self):
        def pr1(): pass
        def pr2(): pass

        db.create_all()

        self.client = client_for(Service(processes=[Process(pr1, 'pr1', 'Process 1'), Process(pr2, 'pr2', 'Process 2')]))
Esempio n. 2
0
    def setUp(self):
        self.tmp_file = tempfile.NamedTemporaryFile('w+')

        application.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format(self.tmp_file.name)

        db.init_app(application)
        db.create_all()
Esempio n. 3
0
    def setUp(self):
        db.create_all()

        def hello(request): pass
        def ping(request): pass
        processes = [Process(hello, 'hello', 'Process Hello'), Process(ping, 'ping', 'Process Ping')]
        self.client = client_for(Service(processes=processes))
Esempio n. 4
0
    def setUp(self):
        self.tmp_file = tempfile.NamedTemporaryFile('w+')

        application.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format(
            self.tmp_file.name)

        db.init_app(application)
        db.create_all()
Esempio n. 5
0
    def setUp(self):
        self.tmp_file = tempfile.mkstemp()

        tmp_file_path = self.tmp_file[1]

        application.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format(tmp_file_path)

        db.init_app(application)
        db.create_all()
Esempio n. 6
0
    def setUp(self):
        self.tmp_file = tempfile.mkstemp()

        tmp_file_path = self.tmp_file[1]

        application.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format(
            tmp_file_path)

        db.init_app(application)
        db.create_all()
Esempio n. 7
0
    def setUp(self):
        def pr1():
            pass

        def pr2():
            pass

        db.create_all()

        self.client = client_for(
            Service(processes=[
                Process(pr1, 'pr1', 'Process 1'),
                Process(pr2, 'pr2', 'Process 2')
            ]))
Esempio n. 8
0
    def setUp(self):
        db.create_all()

        def hello(request):
            pass

        def ping(request):
            pass

        processes = [
            Process(hello, 'hello', 'Process Hello'),
            Process(ping, 'ping', 'Process Ping')
        ]
        self.client = client_for(Service(processes=processes))
Esempio n. 9
0
 def setUp(self):
     db.create_all()
Esempio n. 10
0
    def setUp(self):
        db.create_all()

        self.client = Client(application, BaseResponse)
Esempio n. 11
0
def create_database_tables():
    db.create_all()

    return 'OK'
Esempio n. 12
0
 def setUp(self):
     db.create_all()