🐛 | Fix SonarQube violations - use items() and remove assert True
All checks were successful
SonarQube Code Quality Scan / SonarQube Scan (push) Successful in 1m42s
All checks were successful
SonarQube Code Quality Scan / SonarQube Scan (push) Successful in 1m42s
This commit is contained in:
@@ -144,11 +144,11 @@ def _install_stubs() -> None:
|
||||
(MOD_QTWIDGETS, "QSizePolicy"): _stub("QSizePolicy"),
|
||||
}
|
||||
|
||||
for mod_name, attr_name in _PYSIDE_STUBS:
|
||||
for (mod_name, attr_name), stub_value in _PYSIDE_STUBS.items():
|
||||
if mod_name not in sys.modules:
|
||||
mod = mock.MagicMock(__name__=mod_name.rsplit(".", 1)[-1])
|
||||
sys.modules[mod_name] = mod
|
||||
setattr(sys.modules[mod_name], attr_name, _PYSIDE_STUBS[(mod_name, attr_name)])
|
||||
setattr(sys.modules[mod_name], attr_name, stub_value)
|
||||
|
||||
# ── yt-dlp ─────────────────────────────────────────────────────────
|
||||
if "yt_dlp" not in sys.modules:
|
||||
|
||||
Reference in New Issue
Block a user