@@ -115,19 +115,18 @@ def test_generate_rules_return_only_always_allowed_rules_if_sample_rate_is_100_a
115115 0.5 ,
116116 )
117117
118- with Feature ("organizations:ds-org-recalibration" ):
119- assert generate_rules (default_old_project ) == [
120- {
121- "condition" : {"inner" : [], "op" : "and" },
122- "id" : 1000 ,
123- "samplingValue" : {"type" : "sampleRate" , "value" : 1.0 },
124- "type" : "trace" ,
125- },
126- ]
127- get_blended_sample_rate .assert_called_with (
128- organization_id = default_old_project .organization .id , project = default_old_project
129- )
130- _validate_rules (default_old_project )
118+ assert generate_rules (default_old_project ) == [
119+ {
120+ "condition" : {"inner" : [], "op" : "and" },
121+ "id" : 1000 ,
122+ "samplingValue" : {"type" : "sampleRate" , "value" : 1.0 },
123+ "type" : "trace" ,
124+ },
125+ ]
126+ get_blended_sample_rate .assert_called_with (
127+ organization_id = default_old_project .organization .id , project = default_old_project
128+ )
129+ _validate_rules (default_old_project )
131130
132131
133132@django_db_all
@@ -647,22 +646,21 @@ def test_generate_rules_return_uniform_rules_and_recalibrate_orgs_rule(
647646 default_factor ,
648647 )
649648
650- with Feature ("organizations:ds-org-recalibration" ):
651- assert generate_rules (default_old_project ) == [
652- {
653- "condition" : {"inner" : [], "op" : "and" },
654- "id" : 1004 ,
655- "samplingValue" : {"type" : "factor" , "value" : default_factor },
656- "type" : "trace" ,
657- },
658- {
659- "condition" : {"inner" : [], "op" : "and" },
660- "id" : 1000 ,
661- "samplingValue" : {"type" : "sampleRate" , "value" : 0.1 },
662- "type" : "trace" ,
663- },
664- ]
665- _validate_rules (default_project )
649+ assert generate_rules (default_old_project ) == [
650+ {
651+ "condition" : {"inner" : [], "op" : "and" },
652+ "id" : 1004 ,
653+ "samplingValue" : {"type" : "factor" , "value" : default_factor },
654+ "type" : "trace" ,
655+ },
656+ {
657+ "condition" : {"inner" : [], "op" : "and" },
658+ "id" : 1000 ,
659+ "samplingValue" : {"type" : "sampleRate" , "value" : 0.1 },
660+ "type" : "trace" ,
661+ },
662+ ]
663+ _validate_rules (default_project )
666664
667665
668666@django_db_all
@@ -997,9 +995,7 @@ def test_generate_rules_project_mode(
997995 )
998996 default_old_project .update_option ("sentry:target_sample_rate" , 0.2 )
999997
1000- with Feature (
1001- {"organizations:ds-org-recalibration" : True , "organizations:dynamic-sampling-custom" : True }
1002- ):
998+ with Feature ({"organizations:dynamic-sampling-custom" : True }):
1003999 assert generate_rules (default_old_project ) == [
10041000 {
10051001 "condition" : {"inner" : [], "op" : "and" },
0 commit comments