forked from LBRYCommunity/lbry-sdk
test using a new expander explicitly
This commit is contained in:
parent
382facf264
commit
c498619cca
1 changed files with 12 additions and 2 deletions
|
@ -1,12 +1,22 @@
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
from lbry.service.api import Paginated, Wallet
|
from lbry.service.api import Paginated, Wallet, expander
|
||||||
from lbry.service.parser import (
|
from lbry.service.parser import (
|
||||||
parse_method, get_expanders, get_api_definitions,
|
parse_method, get_expanders, get_api_definitions,
|
||||||
generate_options
|
generate_options
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@expander
|
||||||
|
def test_kwargs(somevalue=1):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@expander
|
||||||
|
def another_test_kwargs(somevalue=2, repeated=3):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class FakeAPI:
|
class FakeAPI:
|
||||||
|
|
||||||
THING_DOC = "thing doc"
|
THING_DOC = "thing doc"
|
||||||
|
@ -35,7 +45,7 @@ class FakeAPI:
|
||||||
|
|
||||||
def thing_search(
|
def thing_search(
|
||||||
self,
|
self,
|
||||||
**claim_filter_and_signed_filter_and_stream_filter_and_pagination_kwargs):
|
**test_and_another_test_kwargs):
|
||||||
"""search command doc"""
|
"""search command doc"""
|
||||||
|
|
||||||
def thing_delete(self, value1: str, **tx_and_pagination_kwargs) -> Wallet: # deleted thing
|
def thing_delete(self, value1: str, **tx_and_pagination_kwargs) -> Wallet: # deleted thing
|
||||||
|
|
Loading…
Reference in a new issue