From 798dd72bb6ae4e6b529901594de0a53a5ea55294 Mon Sep 17 00:00:00 2001 From: Diego Moreda Date: Wed, 30 Dec 2015 20:19:03 +0100 Subject: [PATCH] mbsubmit: style fixes --- beetsplug/mbsubmit.py | 2 +- test/test_mbsubmit.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/beetsplug/mbsubmit.py b/beetsplug/mbsubmit.py index 546656cee..4306cc798 100644 --- a/beetsplug/mbsubmit.py +++ b/beetsplug/mbsubmit.py @@ -41,7 +41,7 @@ class MBSubmitPlugin(BeetsPlugin): 'threshold': 'medium', }) - # validate and store threshold + # Validate and store threshold. self.threshold = self.config['threshold'].as_choice({ 'none': Recommendation.none, 'low': Recommendation.low, diff --git a/test/test_mbsubmit.py b/test/test_mbsubmit.py index 37d1a9c80..7256a6296 100644 --- a/test/test_mbsubmit.py +++ b/test/test_mbsubmit.py @@ -35,7 +35,7 @@ class MBSubmitPluginTest(TerminalImportSessionSetup, unittest.TestCase, self.unload_plugins() self.teardown_beets() - def test_xxxxprint_tracks_output(self): + def test_print_tracks_output(self): """Test the output of the "print tracks" choice.""" self.matcher.matching = AutotagStub.BAD @@ -44,13 +44,13 @@ class MBSubmitPluginTest(TerminalImportSessionSetup, unittest.TestCase, # Print tracks; Skip self.importer.run() - # manually build the string for comparing the output + # Manually build the string for comparing the output. tracklist = ('Print tracks? ' '01. Tag Title 1 - Tag Artist (0:01)\n' '02. Tag Title 2 - Tag Artist (0:01)') self.assertIn(tracklist, output.getvalue()) - def test_xxprint_tracks_output_as_tracks(self): + def test_print_tracks_output_as_tracks(self): """Test the output of the "print tracks" choice, as singletons.""" self.matcher.matching = AutotagStub.BAD @@ -59,7 +59,7 @@ class MBSubmitPluginTest(TerminalImportSessionSetup, unittest.TestCase, # as Tracks; Skip; Print tracks; Skip self.importer.run() - # manually build the string for comparing the output + # Manually build the string for comparing the output. tracklist = ('Print tracks? ' '02. Tag Title 2 - Tag Artist (0:01)') self.assertIn(tracklist, output.getvalue())