Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
0c2c41fcb89d
Commit
2d30cc37
authored
Apr 06, 2011
by
Sylvain Thénault
Browse files
[test] silent warning
--HG-- branch : stable
parent
b2c45b7396fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/test/unittest_msplanner.py
View file @
0c2c41fc
...
...
@@ -23,7 +23,7 @@ from logilab.common.decorators import clear_cache
from
yams.buildobjs
import
RelationDefinition
from
rql
import
BadRQLQuery
from
cubicweb.devtools
import
ini
t_test_d
atabase
from
cubicweb.devtools
import
ge
t_test_d
b_handler
,
TestServerConfiguration
from
cubicweb.devtools.repotest
import
BasePlannerTC
,
test_plan
class
_SetGenerator
(
object
):
...
...
@@ -82,7 +82,9 @@ X_ALL_SOLS = sorted([{'X': 'Affaire'}, {'X': 'BaseTransition'}, {'X': 'Basket'},
# keep cnx so it's not garbage collected and the associated session is closed
def
setUpModule
(
*
args
):
global
repo
,
cnx
repo
,
cnx
=
init_test_database
(
apphome
=
BaseMSPlannerTC
.
datadir
)
handler
=
get_test_db_handler
(
TestServerConfiguration
(
apphome
=
BaseMSPlannerTC
.
datadir
))
handler
.
build_db_cache
()
repo
,
cnx
=
handler
.
get_repo_and_cnx
()
def
tearDownModule
(
*
args
):
global
repo
,
cnx
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment