Use latest runner from djangoms-helper
This commit is contained in:
parent
1486583ed8
commit
8c267e7b58
3 changed files with 10 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -45,3 +45,5 @@ lokalize*
|
|||
docs
|
||||
|
||||
*~
|
||||
*.db
|
||||
*.sqlite
|
15
cms_helper.py
Normal file → Executable file
15
cms_helper.py
Normal file → Executable file
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
from tempfile import mkdtemp
|
||||
gettext = lambda s: s
|
||||
|
@ -97,11 +99,8 @@ if 'test' in sys.argv:
|
|||
|
||||
|
||||
def run():
|
||||
from collections import defaultdict
|
||||
from djangocms_helper import main
|
||||
args = defaultdict(str)
|
||||
args['<application>'] = 'djangocms_blog'
|
||||
args['test'] = True
|
||||
args['--cms'] = True
|
||||
args['--nose-runner'] = True
|
||||
main.core(args=args, application='djangocms_blog')
|
||||
from djangocms_helper import runner
|
||||
runner.cms('djangocms_blog')
|
||||
|
||||
if __name__ == "__main__":
|
||||
run()
|
2
setup.py
2
setup.py
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
Loading…
Reference in a new issue