[POS-commit] r7101 - stoqlib/trunk/tests/sync
Johan Dahlin
jdahlin at async.com.br
Mon Aug 6 14:45:02 BRT 2007
Author: jdahlin
Date: Mon Aug 6 14:45:02 2007
New Revision: 7101
Modified:
stoqlib/trunk/tests/sync/base.py
Log:
try to disable extra bootstrap in tests/, just import domaintest so it will bootstrap only if required
Modified: stoqlib/trunk/tests/sync/base.py
==============================================================================
--- stoqlib/trunk/tests/sync/base.py (original)
+++ stoqlib/trunk/tests/sync/base.py Mon Aug 6 14:45:02 2007
@@ -38,14 +38,17 @@
from stoqlib.database.runtime import new_transaction
from stoqlib.database.synchronization import SynchronizationClient
from stoqlib.database.testsuite import (provide_database_settings,
- provide_utilities, bootstrap_testsuite,
- bootstrap)
+ provide_utilities,
+ bootstrap_testsuite)
from stoqlib.domain.interfaces import ICompany, IBranch
from stoqlib.domain.person import Person
from stoqlib.domain.station import BranchStation
+from stoqlib.domain.test import domaintest
log = Logger('tests.sync.base')
+domaintest # pyflakes
+
# XXX: to be replaced by a config module
class SyncTestData:
""" Data needed by SyncTest """
@@ -184,7 +187,6 @@
try:
- bootstrap()
bootstrap_sync_tests()
except Exception, e:
# Work around trial
More information about the POS-commit
mailing list