🐛 | Fix SonarQube issues across codebase
All checks were successful
SonarQube Code Quality Scan / SonarQube Scan (push) Successful in 1m41s
All checks were successful
SonarQube Code Quality Scan / SonarQube Scan (push) Successful in 1m41s
- Add docstrings to all empty Qt stub methods (S1186) - Fix BLOCKER S1845: rename playbackState to get_playback_state - Rename enum fields to snake_case with CamelCase aliases (S116) - Rename stub methods to snake_case (set_source, set_position, etc.) (S100) - Rename unused timeout param to msecs (S1172) - Remove unused state variables in tests (S1481) - Replace 'is' with '==' for enum comparisons (S5795) - Remove unnecessary list() calls (S7504) - Rename QTh to qt_cls (S117) - Remove commented-out code blocks (S125) - Add docstring to FallbackServiceInterface.emit_properties_changed (S1186)
This commit is contained in:
@@ -72,11 +72,6 @@ def visualizer_mock():
|
||||
return mock.MagicMock(name="visualizer")
|
||||
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# AudioVisualizer
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
|
||||
class TestAudioVisualizer:
|
||||
|
||||
def test_reset_activity(self, app):
|
||||
@@ -90,11 +85,6 @@ class TestAudioVisualizer:
|
||||
_cleanup(viz, app)
|
||||
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# PlaybackBar
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
|
||||
class TestPlaybackBar:
|
||||
|
||||
def test_clear_seek_flag(self, app, player_mock, visualizer_mock):
|
||||
@@ -154,11 +144,6 @@ class TestPlaybackBar:
|
||||
_cleanup(bar, app)
|
||||
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# SearchPage
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
|
||||
class TestSearchPage:
|
||||
|
||||
def test_on_show_more_clicked_from_button(self, app):
|
||||
|
||||
Reference in New Issue
Block a user