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
*~
*.db
*.sqlite

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

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys