提交 e8346c20 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #938 from clebergnu/functional_basic_plugin_references

selftests/functional/test_basic.py: remove references to old Plugin
...@@ -33,29 +33,6 @@ false ...@@ -33,29 +33,6 @@ false
FAIL_SHELL_CONTENTS = "exit 1" FAIL_SHELL_CONTENTS = "exit 1"
VOID_PLUGIN_CONTENTS = """#!/usr/bin/env python
from avocado.core.plugins.plugin import Plugin
class VoidPlugin(Plugin):
pass
"""
SYNTAX_ERROR_PLUGIN_CONTENTS = """#!/usr/bin/env python
from avocado.core.plugins.plugin import Plugin
class VoidPlugin(Plugin)
"""
HELLO_PLUGIN_CONTENTS = """#!/usr/bin/env python
from avocado.core.plugins.plugin import Plugin
class HelloWorld(Plugin):
name = 'hello'
enabled = True
def configure(self, parser):
self.parser = parser.subcommands.add_parser('hello')
super(HelloWorld, self).configure(self.parser)
def run(self, args):
print('Hello World!')
"""
HELLO_LIB_CONTENTS = """ HELLO_LIB_CONTENTS = """
def hello(): def hello():
return 'Hello world' return 'Hello world'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册