Skip to content

Commit

Permalink
simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomcteixeira committed Jun 22, 2022
1 parent 388cbec commit 83bcd11
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions tests/test_cli_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,11 @@ def global_params(request):
return request.param


@pytest.mark.parametrize(
"module",
list(modules_category.keys()) + [None],
)
def test_export_cfgs(module, config_level):
"""Test export all configs work."""
cli_cfg.main(module, config_level)


@pytest.mark.parametrize(
"module",
list(modules_category.keys()),
)
@pytest.fixture(params=list(modules_category.keys()) + [None])
def module(request):
return request.param


def test_export_cfgs_add_global(module, config_level, global_params):
"""Test export all configs work with `add_global` parameter."""
cli_cfg.main(module, explevel=config_level, global_params=global_params)

0 comments on commit 83bcd11

Please sign in to comment.