misc: split form_pages tests
This commit is contained in:
parent
0e89a30c12
commit
40f6ae2551
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,6 @@ from django.utils.six import StringIO
|
|||
import pytest
|
||||
from webtest import Upload
|
||||
|
||||
from wcs.qommon.ident.password_accounts import PasswordAccount
|
||||
from wcs.blocks import BlockDef
|
||||
from wcs.formdef import FormDef
|
||||
from wcs.workflows import Workflow
|
||||
|
@ -17,6 +16,7 @@ from wcs.data_sources import NamedDataSource
|
|||
from wcs import fields
|
||||
|
||||
from utilities import get_app, login, create_temporary_pub, clean_temporary_pub
|
||||
from .test_all import create_user
|
||||
|
||||
|
||||
def pytest_generate_tests(metafunc):
|
||||
|
@ -46,21 +46,6 @@ def teardown_module(module):
|
|||
clean_temporary_pub()
|
||||
|
||||
|
||||
def create_user(pub):
|
||||
pub.user_class.wipe()
|
||||
PasswordAccount.wipe()
|
||||
|
||||
user = pub.user_class()
|
||||
user.name = 'User Name'
|
||||
user.email = 'foo@localhost'
|
||||
user.store()
|
||||
account = PasswordAccount(id='foo')
|
||||
account.set_password('foo')
|
||||
account.user_id = user.id
|
||||
account.store()
|
||||
return user
|
||||
|
||||
|
||||
def test_block_simple(pub, blocks_feature):
|
||||
FormDef.wipe()
|
||||
BlockDef.wipe()
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue