beets/test/rsrc/beetsplug/test.py
Peter Kessen 302ca94bfb Removed import of unicode_literals
* test/lyrics_download_samples.py
* test/rsrc/beetsplug/test.py
2016-02-20 14:48:35 +01:00

23 lines
601 B
Python

# -*- coding: utf-8 -*-
from __future__ import (division, absolute_import, print_function)
from beets.plugins import BeetsPlugin
from beets import ui
class TestPlugin(BeetsPlugin):
def __init__(self):
super(TestPlugin, self).__init__()
self.is_test_plugin = True
def commands(self):
test = ui.Subcommand('test')
test.func = lambda *args: None
# Used in CompletionTest
test.parser.add_option(u'-o', u'--option', dest='my_opt')
plugin = ui.Subcommand('plugin')
plugin.func = lambda *args: None
return [test, plugin]