beets/test/rsrc/beetsplug/test.py
Peter Kessen 6b408507f6 added encoding as comment in files
added line like
# -*- coding: utf-8 -*-
to all files without license
2015-11-19 18:52:57 +01:00

24 lines
641 B
Python

# -*- coding: utf-8 -*-
from __future__ import (division, absolute_import, print_function,
unicode_literals)
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('-o', '--option', dest='my_opt')
plugin = ui.Subcommand('plugin')
plugin.func = lambda *args: None
return [test, plugin]