From c498619ccae5809406f97703e924a4f4e5a90410 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 3 Sep 2020 16:02:59 -0300 Subject: [PATCH] test using a new expander explicitly --- tests/unit/service/test_parser.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/unit/service/test_parser.py b/tests/unit/service/test_parser.py index 6fcfcb87e..e75d45302 100644 --- a/tests/unit/service/test_parser.py +++ b/tests/unit/service/test_parser.py @@ -1,12 +1,22 @@ from unittest import TestCase from textwrap import dedent -from lbry.service.api import Paginated, Wallet +from lbry.service.api import Paginated, Wallet, expander from lbry.service.parser import ( parse_method, get_expanders, get_api_definitions, generate_options ) +@expander +def test_kwargs(somevalue=1): + pass + + +@expander +def another_test_kwargs(somevalue=2, repeated=3): + pass + + class FakeAPI: THING_DOC = "thing doc" @@ -35,7 +45,7 @@ class FakeAPI: def thing_search( self, - **claim_filter_and_signed_filter_and_stream_filter_and_pagination_kwargs): + **test_and_another_test_kwargs): """search command doc""" def thing_delete(self, value1: str, **tx_and_pagination_kwargs) -> Wallet: # deleted thing