Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
gracedb-client
Commits
4fc8ddb6
Verified
Commit
4fc8ddb6
authored
Aug 23, 2019
by
Tanner Prestegard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix safe_client used in unit tests
parent
7945cd25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ligo/gracedb/test/conftest.py
ligo/gracedb/test/conftest.py
+2
-2
No files found.
ligo/gracedb/test/conftest.py
View file @
4fc8ddb6
...
...
@@ -17,8 +17,8 @@ from ligo.gracedb.rest import GraceDb
@
pytest
.
fixture
def
safe_client
():
"""A client class which has its request() method mocked away"""
with
mock
.
patch
.
object
(
GraceDb
,
'request'
):
client
=
GraceDb
()
client
=
GraceDb
()
client
.
request
=
mock
.
Mock
()
return
client
...
...
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