debug: test_workflow
This commit is contained in:
parent
bb0e8af0fb
commit
f6bc6786ac
2 changed files with 3 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ def migrate(context, rebuild_website=False, skip_failing=False, skip_search_inde
|
|||
if not context.sites:
|
||||
raise SiteNotSpecifiedError
|
||||
|
||||
print("Compiling Python Files...")
|
||||
print("Compiling Python files...")
|
||||
compileall.compile_dir('../apps', quiet=1, rx=re.compile('.*node_modules.*'))
|
||||
|
||||
@click.command('migrate-to')
|
||||
|
|
|
|||
|
|
@ -35,7 +35,9 @@ class TestWorkflow(unittest.TestCase):
|
|||
'''test simple workflow'''
|
||||
todo = doc or self.test_default_condition()
|
||||
|
||||
print_sql(True)
|
||||
apply_workflow(todo, 'Approve')
|
||||
print_sql(False)
|
||||
# default condition is set
|
||||
self.assertEqual(todo.workflow_state, 'Approved')
|
||||
self.assertEqual(todo.status, 'Closed')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue