Bugfix safe_client used in unit tests

parent 7945cd25
......@@ -17,8 +17,8 @@ from ligo.gracedb.rest import GraceDb
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment