@@ -274,8 +274,8 @@ def test_run_hooks_and_send_no_hooks(self):
274
274
# always call send_presampled
275
275
# send should never be called because at a minimum we always do deterministic
276
276
# sampling
277
- m_span .event .send .assert_not_called ()
278
- m_span .event .send_presampled .assert_called_once_with ()
277
+ m_span .event .send .assert_not_called () # pylint: disable=no-member
278
+ m_span .event .send_presampled .assert_called_once_with () # pylint: disable=no-member
279
279
280
280
def test_run_hooks_and_send_sampler (self ):
281
281
''' ensure send works with a sampler hook defined '''
@@ -293,8 +293,8 @@ def _sampler_drop_all(fields):
293
293
tracer ._run_hooks_and_send (m_span )
294
294
295
295
# sampler ensures we drop everything
296
- m_span .event .send .assert_not_called ()
297
- m_span .event .send_presampled .assert_not_called ()
296
+ m_span .event .send .assert_not_called () # pylint: disable=no-member
297
+ m_span .event .send_presampled .assert_not_called () # pylint: disable=no-member
298
298
299
299
def _sampler_drop_none (fields ):
300
300
return True , 100
@@ -308,8 +308,8 @@ def _sampler_drop_none(fields):
308
308
309
309
# sampler drops nothing, _should_sample rigged to always return true so
310
310
# we always call send_presampled
311
- m_span .event .send .assert_not_called ()
312
- m_span .event .send_presampled .assert_called_once_with ()
311
+ m_span .event .send .assert_not_called () # pylint: disable=no-member
312
+ m_span .event .send_presampled .assert_called_once_with () # pylint: disable=no-member
313
313
# ensure event is updated with new sample rate
314
314
self .assertEqual (m_span .event .sample_rate , 100 )
315
315
@@ -335,7 +335,7 @@ def _presend_hook(fields):
335
335
m_sample_fn .return_value = True
336
336
tracer ._run_hooks_and_send (m_span )
337
337
338
- m_span .event .send_presampled .assert_called_once_with ()
338
+ m_span .event .send_presampled .assert_called_once_with () # pylint: disable=no-member
339
339
self .assertDictEqual (
340
340
m_span .event .fields (),
341
341
{
0 commit comments