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
|
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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
gettext = lambda s: s
|
gettext = lambda s: s
|
||||||
|
@ -97,11 +99,8 @@ if 'test' in sys.argv:
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
from collections import defaultdict
|
from djangocms_helper import runner
|
||||||
from djangocms_helper import main
|
runner.cms('djangocms_blog')
|
||||||
args = defaultdict(str)
|
|
||||||
args['<application>'] = 'djangocms_blog'
|
if __name__ == "__main__":
|
||||||
args['test'] = True
|
run()
|
||||||
args['--cms'] = True
|
|
||||||
args['--nose-runner'] = True
|
|
||||||
main.core(args=args, application='djangocms_blog')
|
|
2
setup.py
2
setup.py
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in a new issue