Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
65565105206c
Commit
dfc39b78
authored
Jun 23, 2021
by
Laurent Peuch
Browse files
feat(testing): activate debug mode during testing
parent
ceeb196cb877
Pipeline
#64039
passed with stage
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
cubicweb/devtools/testlib.py
View file @
65565105
...
...
@@ -417,7 +417,16 @@ class CubicWebTC(BaseTestCase):
self
.
setup_database
()
MAILBOX
[:]
=
[]
# reset mailbox
self
.
previous_log_threshold
=
self
.
config
.
config
.
log_threshold
# I want debug all the time because god
self
.
config
.
global_set_option
(
"log-threshold"
,
"DEBUG"
)
self
.
config
.
init_log
(
self
.
config
[
"log-threshold"
],
force
=
True
)
def
tearDown
(
self
):
self
.
config
.
global_set_option
(
"log-threshold"
,
self
.
previous_log_threshold
)
self
.
config
.
init_log
(
self
.
config
[
"log-threshold"
],
force
=
True
)
while
self
.
_cleanups
:
cleanup
,
args
,
kwargs
=
self
.
_cleanups
.
pop
(
-
1
)
cleanup
(
*
args
,
**
kwargs
)
...
...
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