Verified Commit 4fc8ddb6 authored by Tanner Prestegard's avatar Tanner Prestegard
Browse files

Bugfix safe_client used in unit tests

parent 7945cd25
...@@ -17,8 +17,8 @@ from ligo.gracedb.rest import GraceDb ...@@ -17,8 +17,8 @@ from ligo.gracedb.rest import GraceDb
@pytest.fixture @pytest.fixture
def safe_client(): def safe_client():
"""A client class which has its request() method mocked away""" """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 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