summaryrefslogtreecommitdiffstats
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-06 22:55:40 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-06 22:55:40 +0200
commite667cd7e2dd0a7ac14ac30db38ca630ec0c5409b (patch)
treea491226d5a7ee4c41fbe758d59550d2d011a3272 /tests/test_core.py
parent0cec8c42c0a3c994285b93db5ee2881042586672 (diff)
downloadpydanclick-e667cd7e2dd0a7ac14ac30db38ca630ec0c5409b.tar.gz
fixup! wip: decorator + arguments tests
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py12
1 files changed, 10 insertions, 2 deletions
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(
remember that computers suck.