From e667cd7e2dd0a7ac14ac30db38ca630ec0c5409b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 6 Oct 2022 22:55:40 +0200 Subject: fixup! wip: decorator + arguments tests --- tests/test_core.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tests/test_core.py') diff --git a/tests/test_core.py b/tests/test_core.py index cc4755f..d85a6e6 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -2,16 +2,24 @@ import click import pickle import pytest +from pydanclick import core +from tests import conftest + def test_get_option_arguments_ok(valid_arguments): # core.get_option_arguments(schema, parameter, "mega-option") pass -def test_generate_cli_options_start(valid_command_entrypoint): +def test_generate_cli_options_start(): + + @click.command() + @core.generate_cli_options() + def entrypoint(parameters: conftest.GenericArguments): + pass with pytest.raises(SystemExit): - valid_command_entrypoint() + entrypoint() @pytest.mark.parametrize( -- cgit v1.2.3