@@ -77,7 +77,7 @@ def test_set_config__success(self):
77
77
mock_notification_center .send_notifications .assert_called_once_with ('OPTIMIZELY_CONFIG_UPDATE' )
78
78
79
79
self .assertIsInstance (
80
- project_config_manager .optimizely_config ,
80
+ project_config_manager .get_optimizely_config () ,
81
81
optimizely_config .OptimizelyConfig
82
82
)
83
83
@@ -99,7 +99,7 @@ def test_set_config__twice__with_same_content(self):
99
99
)
100
100
self .assertEqual (1 , mock_logger .debug .call_count )
101
101
mock_notification_center .send_notifications .assert_called_once_with ('OPTIMIZELY_CONFIG_UPDATE' )
102
- self .assertEqual (1 , mock_opt_service .call_count )
102
+ self .assertEqual (0 , mock_opt_service .call_count )
103
103
104
104
mock_logger .reset_mock ()
105
105
mock_notification_center .reset_mock ()
@@ -128,7 +128,7 @@ def test_set_config__twice__with_diff_content(self):
128
128
)
129
129
self .assertEqual (1 , mock_logger .debug .call_count )
130
130
mock_notification_center .send_notifications .assert_called_once_with ('OPTIMIZELY_CONFIG_UPDATE' )
131
- self .assertEqual ('1' , project_config_manager .optimizely_config .revision )
131
+ self .assertEqual ('1' , project_config_manager .get_optimizely_config () .revision )
132
132
133
133
mock_logger .reset_mock ()
134
134
mock_notification_center .reset_mock ()
@@ -141,7 +141,7 @@ def test_set_config__twice__with_diff_content(self):
141
141
)
142
142
self .assertEqual (1 , mock_logger .debug .call_count )
143
143
mock_notification_center .send_notifications .assert_called_once_with ('OPTIMIZELY_CONFIG_UPDATE' )
144
- self .assertEqual ('42' , project_config_manager .optimizely_config .revision )
144
+ self .assertEqual ('42' , project_config_manager .get_optimizely_config () .revision )
145
145
146
146
def test_set_config__schema_validation (self ):
147
147
""" Test set_config calls or does not call schema validation based on skip_json_validation value. """
0 commit comments