equal
deleted
inserted
replaced
25 from subprocess import Popen, PIPE, STDOUT |
25 from subprocess import Popen, PIPE, STDOUT |
26 from unittest import TestCase |
26 from unittest import TestCase |
27 |
27 |
28 |
28 |
29 def newcube(directory, name): |
29 def newcube(directory, name): |
30 cmd = [sys.executable, '-m' 'cubicweb', 'newcube', |
30 cmd = ['cubicweb-ctl', 'newcube', '--directory', directory, name] |
31 '--directory', directory, name] |
|
32 proc = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT) |
31 proc = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT) |
33 stdout, _ = proc.communicate(b'short_desc\n') |
32 stdout, _ = proc.communicate(b'short_desc\n') |
34 return proc.returncode, stdout |
33 return proc.returncode, stdout |
35 |
34 |
36 |
35 |