Use latest runner from djangoms-helper

This commit is contained in:
Iacopo Spalletti 2015-01-04 17:59:20 +01:00
parent 1486583ed8
commit 8c267e7b58
3 changed files with 10 additions and 9 deletions

2
.gitignore vendored
View File

@ -45,3 +45,5 @@ lokalize*
docs docs
*~ *~
*.db
*.sqlite

15
cms_helper.py Normal file → Executable file
View 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')

View File

@ -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