Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod-tests
Commits
06e855749696
Commit
93faa1c1
authored
Nov 03, 2020
by
Georges Racinet
🦑
Browse files
Made Users be context managers
parent
db88bce4c219
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/utils/user.py
View file @
06e85574
...
...
@@ -240,3 +240,10 @@ class User(object):
logger
.
info
(
"%r: access token generated in %.2f seconds"
,
self
,
time
.
time
()
-
start
)
def
__enter__
(
self
):
return
self
def
__exit__
(
self
,
*
exc_args
):
self
.
delete
()
return
False
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