File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66from numbers import Number
77from pathlib import Path
88
9- import pytest
109from sqlalchemy import MetaData
1110
1211from cloudbot .hook import Action
@@ -48,8 +47,8 @@ def load_plugin(plugin_path, monkeypatch):
4847
4948def pytest_generate_tests (metafunc ):
5049 if 'plugin_path' in metafunc .fixturenames :
51- param_list = ( pytest . param ( path , id = path ) for path in gather_plugins ())
52- metafunc .parametrize ('plugin_path' , param_list )
50+ paths = list ( gather_plugins ())
51+ metafunc .parametrize ('plugin_path' , paths , ids = paths )
5352
5453
5554HOOK_ATTR_TYPES = {
@@ -87,5 +86,5 @@ def _test_hook(hook):
8786 "Unexpected type '{}' for hook attribute '{}'" .format (type (attr ).__name__ , name )
8887
8988 if hook .type == "command" and hook .doc :
90- assert hook .doc [:1 ] not in "." + string .ascii_letters ,\
89+ assert hook .doc [:1 ] not in "." + string .ascii_letters , \
9190 "Invalid docstring '{}' format for command hook" .format (hook .doc )
You can’t perform that action at this time.
0 commit comments