mbsubmit: style fixes

This commit is contained in:
Diego Moreda 2015-12-30 20:19:03 +01:00
parent 966746fd55
commit 798dd72bb6
2 changed files with 5 additions and 5 deletions

View file

@ -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,

View file

@ -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())