@@ -205,13 +205,13 @@ def check_dependencies(deps_element, ns):
205205
206206 if group_id == "org.junit.jupiter" or (artifact_id and "junit-jupiter" in artifact_id ):
207207 has_junit5 = True
208- logger .debug (f "Found JUnit 5 dependency: { group_id } : { artifact_id } " )
208+ logger .debug ("Found JUnit 5 dependency: %s:%s" , group_id , artifact_id )
209209 elif group_id == "junit" and artifact_id == "junit" :
210210 has_junit4 = True
211- logger .debug (f "Found JUnit 4 dependency: { group_id } : { artifact_id } " )
211+ logger .debug ("Found JUnit 4 dependency: %s:%s" , group_id , artifact_id )
212212 elif group_id == "org.testng" :
213213 has_testng = True
214- logger .debug (f "Found TestNG dependency: { group_id } : { artifact_id } " )
214+ logger .debug ("Found TestNG dependency: %s:%s" , group_id , artifact_id )
215215
216216 try :
217217 tree = ET .parse (pom_path )
@@ -220,20 +220,20 @@ def check_dependencies(deps_element, ns):
220220 # Handle namespace
221221 ns = {"m" : "http://maven.apache.org/POM/4.0.0" }
222222
223- logger .debug (f "Checking pom.xml at { pom_path } " )
223+ logger .debug ("Checking pom.xml at %s" , pom_path )
224224
225225 # Search for direct dependencies
226226 for deps_path in ["dependencies" , "m:dependencies" ]:
227227 deps = root .find (deps_path , ns ) if "m:" in deps_path else root .find (deps_path )
228228 if deps is not None :
229- logger .debug (f "Found dependencies section in { pom_path } " )
229+ logger .debug ("Found dependencies section in %s" , pom_path )
230230 check_dependencies (deps , ns )
231231
232232 # Also check dependencyManagement section (for multi-module projects)
233233 for dep_mgmt_path in ["dependencyManagement" , "m:dependencyManagement" ]:
234234 dep_mgmt = root .find (dep_mgmt_path , ns ) if "m:" in dep_mgmt_path else root .find (dep_mgmt_path )
235235 if dep_mgmt is not None :
236- logger .debug (f "Found dependencyManagement section in { pom_path } " )
236+ logger .debug ("Found dependencyManagement section in %s" , pom_path )
237237 for deps_path in ["dependencies" , "m:dependencies" ]:
238238 deps = dep_mgmt .find (deps_path , ns ) if "m:" in deps_path else dep_mgmt .find (deps_path )
239239 if deps is not None :
@@ -249,15 +249,15 @@ def check_dependencies(deps_element, ns):
249249 for submodule_name in ["test" , "tests" , "src/test" , "testing" ]:
250250 submodule_pom = project_root / submodule_name / "pom.xml"
251251 if submodule_pom .exists ():
252- logger .debug (f "Checking submodule pom at { submodule_pom } " )
252+ logger .debug ("Checking submodule pom at %s" , submodule_pom )
253253 sub_junit5 , sub_junit4 , sub_testng = _detect_test_deps_from_pom (project_root / submodule_name )
254254 has_junit5 = has_junit5 or sub_junit5
255255 has_junit4 = has_junit4 or sub_junit4
256256 has_testng = has_testng or sub_testng
257257 if has_junit5 or has_junit4 or has_testng :
258258 break
259259
260- logger .debug (f "Test framework detection result: junit5={ has_junit5 } , junit4={ has_junit4 } , testng={ has_testng } " )
260+ logger .debug ("Test framework detection result: junit5=%s , junit4=%s , testng=%s" , has_junit5 , has_junit4 , has_testng )
261261 return has_junit5 , has_junit4 , has_testng
262262
263263
0 commit comments