@@ -230,7 +230,9 @@ def test_sampling_percentage_100_does_not_add_sample_rate_attribute(self):
230230 sampler ._sampling_percentage_generator .get = Mock (return_value = 100.0 )
231231
232232 original_attributes = {"service.name" : "test-service" , "operation.name" : "test-operation" }
233- result = sampler .should_sample (parent_context = None , trace_id = 123 , name = "test-span" , attributes = original_attributes )
233+ result = sampler .should_sample (
234+ parent_context = None , trace_id = 123 , name = "test-span" , attributes = original_attributes
235+ )
234236
235237 self .assertEqual (dict (result .attributes ), original_attributes )
236238 self .assertNotIn (_SAMPLE_RATE_KEY , result .attributes )
@@ -246,7 +248,9 @@ def test_sampling_percentage_non_100_adds_sample_rate_attribute(self):
246248 sampler ._sampling_percentage_generator .get = Mock (return_value = 42.0 )
247249
248250 original_attributes = {"service.name" : "test-service" , "operation.name" : "test-operation" }
249- result = sampler .should_sample (parent_context = None , trace_id = 123 , name = "test-span" , attributes = original_attributes )
251+ result = sampler .should_sample (
252+ parent_context = None , trace_id = 123 , name = "test-span" , attributes = original_attributes
253+ )
250254
251255 self .assertEqual (dict (result .attributes ), {** original_attributes , _SAMPLE_RATE_KEY : 42.0 })
252256 self .assertIn (_SAMPLE_RATE_KEY , result .attributes )
0 commit comments