-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_manage.py
More file actions
40 lines (34 loc) · 1.26 KB
/
test_manage.py
File metadata and controls
40 lines (34 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from test_app import app as app
from db import db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from tests.test_item_resource import test_item_resource
from tests.test_group_resource import test_group_resource
from tests.test_event_call_resource import test_event_call_resource
from tests.test_usage_resource import test_usage_resource
from tests.test_event_resource import test_event_resource
from tests.test_event_analysis import test_event_analysis
from tests.test_graph_resource import test_graph_resource
from tests.test_schedule_resource import test_schedule_resource
from tests.test_presets_resource import test_presets_resource
from tests.test_preset_actions_resource import test_preset_actions_resource
from tests import clear_database
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def run_tests():
db.init_app(app)
clear_database.clear_database()
test_item_resource()
test_group_resource()
test_event_call_resource()
test_usage_resource()
test_event_resource()
test_event_analysis()
test_graph_resource()
test_schedule_resource()
test_presets_resource()
test_preset_actions_resource()
if __name__ == '__main__':
manager.run()