unit tests for cli.load_plugins
This commit is contained in:
parent
0f51a9936f
commit
6fe90a170d
5 changed files with 47 additions and 7 deletions
0
tests/test_cli/data/plugins/not_plugin.omg
Normal file
0
tests/test_cli/data/plugins/not_plugin.omg
Normal file
19
tests/test_cli/data/plugins/plugin1.py
Normal file
19
tests/test_cli/data/plugins/plugin1.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from koji.plugin import export_cli, export_as
|
||||
|
||||
@export_as('foobar')
|
||||
@export_cli
|
||||
def foo():
|
||||
pass
|
||||
|
||||
@export_cli
|
||||
def foo2():
|
||||
pass
|
||||
|
||||
def foo3():
|
||||
pass
|
||||
|
||||
foo4 = 'foo4'
|
||||
|
||||
class bar():
|
||||
pass
|
||||
|
||||
1
tests/test_cli/data/plugins/plugin2.py
Normal file
1
tests/test_cli/data/plugins/plugin2.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
sth = 123
|
||||
Loading…
Add table
Add a link
Reference in a new issue