beets/test/rsrc/beetsplug/test.py
Adrian Sampson e54c7eec3d Standardize __future__ imports without parentheses
Since the list is short enough now, we don't need parentheses for the line
wrap. This is a little less ugly.
2016-02-28 15:03:51 -08:00

23 lines
599 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]