File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,15 @@ def drop_db(config):
46
46
@admincli .command ()
47
47
@click .option ('--config' , '-c' )
48
48
def fill_db (config ):
49
- if config :
50
- os .environ ['RECASTFRONTEND_CONFIG' ] = config
51
- import populate_db
52
- from recastfrontend .server import db
53
- click .secho ('filled database at: {}' .format (db .engine .url ), fg = 'green' )
49
+ set_config (config )
50
+ import populate_db
51
+ from recastfrontend .server import db
52
+ click .secho ('filled database at: {}' .format (db .engine .url ), fg = 'green' )
54
53
55
54
@admincli .command ()
56
55
@click .option ('--config' , '-c' )
57
56
def test (config ):
58
57
set_config (config )
59
- if config :
60
- os .environ ['RECASTFRONTEND_CONFIG' ] = config
61
- import unittest
62
- tests = unittest .TestLoader ().discover ('tests' )
63
- unittest .TextTestRunner (verbosity = 2 ).run (tests )
58
+ import unittest
59
+ tests = unittest .TestLoader ().discover ('tests' )
60
+ unittest .TextTestRunner (verbosity = 2 ).run (tests )
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ <h3> {{ request.title }}
11
11
</ span >
12
12
</ h3 >
13
13
</ div >
14
+
14
15
< div class ="container-fluid ">
15
16
< div class ="row ">
16
17
<!--First column -->
You can’t perform that action at this time.
0 commit comments