This commit is contained in:
Leighton
2020-11-09 10:14:44 -05:00
parent a10e2c68d1
commit dad94d434d
2 changed files with 10 additions and 5 deletions

View File

@ -110,6 +110,7 @@ class RequestsIntegrationTestBase(abc.ABC):
def test_name_callback(self):
def name_callback():
return "test_name"
RequestsInstrumentor().uninstrument()
RequestsInstrumentor().instrument(name_callback=name_callback)
result = self.perform_request(self.URL)
@ -121,6 +122,7 @@ class RequestsIntegrationTestBase(abc.ABC):
def test_name_callback_default(self):
def name_callback():
return 123
RequestsInstrumentor().uninstrument()
RequestsInstrumentor().instrument(name_callback=name_callback)
result = self.perform_request(self.URL)