@@ -38,7 +38,7 @@ def test_initialization_with_explicit_env_file(self, tmp_path):
3838 mock_cred_instance = Mock ()
3939 mock_cred .return_value = mock_cred_instance
4040
41- _app = ConcreteApplication (env_file_path = str (env_file ))
41+ app = ConcreteApplication (env_file_path = str (env_file ))
4242
4343 assert app .application_context is not None
4444 assert isinstance (app .application_context , AppContext )
@@ -60,7 +60,7 @@ def test_initialization_auto_discover_env_file(self, tmp_path, monkeypatch):
6060 mock_getfile .return_value = str (test_file )
6161 mock_cred .return_value = Mock ()
6262
63- _app = ConcreteApplication ()
63+ app = ConcreteApplication ()
6464
6565 assert app .application_context is not None
6666 assert app .initialized is True
@@ -81,7 +81,7 @@ def test_initialization_with_app_config_endpoint(self, tmp_path, monkeypatch):
8181 mock_app_config_instance = Mock ()
8282 mock_app_config .return_value = mock_app_config_instance
8383
84- _app = ConcreteApplication (env_file_path = str (env_file ))
84+ app = ConcreteApplication (env_file_path = str (env_file ))
8585
8686 mock_app_config .assert_called_once ()
8787 mock_app_config_instance .read_and_set_environmental_variables .assert_called_once ()
@@ -101,7 +101,7 @@ def test_initialization_with_logging_enabled(self, tmp_path, monkeypatch):
101101
102102 mock_cred .return_value = Mock ()
103103
104- _app = ConcreteApplication (env_file_path = str (env_file ))
104+ app = ConcreteApplication (env_file_path = str (env_file ))
105105
106106 # Verify logging was configured
107107 mock_logging .assert_called_once ()
@@ -122,7 +122,7 @@ def test_initialization_without_logging(self, tmp_path, monkeypatch):
122122
123123 mock_cred .return_value = Mock ()
124124
125- _app = ConcreteApplication (env_file_path = str (env_file ))
125+ app = ConcreteApplication (env_file_path = str (env_file ))
126126
127127 # Verify logging was NOT configured
128128 mock_logging .assert_not_called ()
@@ -140,7 +140,7 @@ def test_initialization_sets_llm_settings(self, tmp_path):
140140 mock_llm_instance = Mock ()
141141 mock_llm_settings .return_value = mock_llm_instance
142142
143- _app = ConcreteApplication (env_file_path = str (env_file ))
143+ app = ConcreteApplication (env_file_path = str (env_file ))
144144
145145 assert app .application_context .llm_settings == mock_llm_instance
146146 mock_llm_settings .assert_called_once_with (
@@ -158,7 +158,7 @@ def test_load_env_with_explicit_path(self, tmp_path):
158158 patch ('libs.base.application_base.AgentFrameworkSettings' ), \
159159 patch ('libs.base.application_base.load_dotenv' ) as mock_load_dotenv :
160160
161- _app = ConcreteApplication (env_file_path = str (env_file ))
161+ app = ConcreteApplication (env_file_path = str (env_file ))
162162
163163 # Verify load_dotenv was called at least once
164164 assert mock_load_dotenv .call_count >= 1
@@ -177,7 +177,7 @@ def test_get_derived_class_location(self, tmp_path):
177177 test_env = tmp_path / ".env"
178178 test_env .write_text ("APP_LOGGING_ENABLE=false\n " )
179179
180- _app = ConcreteApplication (env_file_path = str (test_env ))
180+ app = ConcreteApplication (env_file_path = str (test_env ))
181181
182182 location = app ._get_derived_class_location ()
183183
@@ -196,7 +196,7 @@ def test_application_context_credential_set(self, tmp_path):
196196 mock_cred_instance = Mock ()
197197 mock_cred .return_value = mock_cred_instance
198198
199- _app = ConcreteApplication (env_file_path = str (env_file ))
199+ app = ConcreteApplication (env_file_path = str (env_file ))
200200
201201 assert app .application_context .credential == mock_cred_instance
202202
@@ -211,7 +211,7 @@ def test_application_context_configuration_set(self, tmp_path, monkeypatch):
211211 patch ('libs.base.application_base.AppConfigurationHelper' ), \
212212 patch ('libs.base.application_base.AgentFrameworkSettings' ):
213213
214- _app = ConcreteApplication (env_file_path = str (env_file ))
214+ app = ConcreteApplication (env_file_path = str (env_file ))
215215
216216 assert app .application_context .configuration is not None
217217
@@ -224,7 +224,7 @@ def test_run_method_called(self, tmp_path):
224224 patch ('libs.base.application_base.AppConfigurationHelper' ), \
225225 patch ('libs.base.application_base.AgentFrameworkSettings' ):
226226
227- _app = ConcreteApplication (env_file_path = str (env_file ))
227+ app = ConcreteApplication (env_file_path = str (env_file ))
228228
229229 assert app .running is False
230230 app .run ()
@@ -241,7 +241,7 @@ def test_initialize_method_called_during_init(self, tmp_path):
241241
242242 # initialized flag is set in ConcreteApplication.__init__ which calls super().__init__
243243 # But the initialize() method sets initialized=True
244- _app = ConcreteApplication (env_file_path = str (env_file ))
244+ app = ConcreteApplication (env_file_path = str (env_file ))
245245
246246 # The initialize() method should have been called in ConcreteApplication.__init__
247247 assert app .initialized is True
@@ -257,7 +257,7 @@ def test_empty_app_config_endpoint_skipped(self, tmp_path, monkeypatch):
257257 patch ('libs.base.application_base.AppConfigurationHelper' ) as mock_app_config , \
258258 patch ('libs.base.application_base.AgentFrameworkSettings' ):
259259
260- _app = ConcreteApplication (env_file_path = str (env_file ))
260+ app = ConcreteApplication (env_file_path = str (env_file ))
261261
262262 # AppConfigurationHelper should not be called with empty endpoint
263263 mock_app_config .assert_not_called ()
@@ -274,7 +274,7 @@ def test_none_app_config_endpoint_skipped(self, tmp_path, monkeypatch):
274274 patch ('libs.base.application_base.AppConfigurationHelper' ) as mock_app_config , \
275275 patch ('libs.base.application_base.AgentFrameworkSettings' ):
276276
277- _app = ConcreteApplication (env_file_path = str (env_file ))
277+ app = ConcreteApplication (env_file_path = str (env_file ))
278278
279279 # AppConfigurationHelper should not be called
280280 mock_app_config .assert_not_called ()
0 commit comments