wrapped function to condense code
This commit is contained in:
parent
7fa6d640e4
commit
c27a89b8f9
5 changed files with 49 additions and 14 deletions
11
testing.py
11
testing.py
|
|
@ -127,7 +127,12 @@ from wrappers.post.create_post import create_post
|
|||
# "This is a test post created via the create_post wrapper function.",
|
||||
# "/userprofile/simon-little",
|
||||
# ))
|
||||
save_response(API.run_job('post.create', create_post(
|
||||
|
||||
# wrapped = create_post(
|
||||
# "This is a test post created via the create_post wrapper function without using the `wrapped` method.",
|
||||
# )
|
||||
# save_response(API.run_job(**wrapped))
|
||||
|
||||
save_response(API.wrapped(create_post(
|
||||
"This is a test post created via the create_post wrapper function.",
|
||||
"/userprofile/simon-little",
|
||||
)))
|
||||
)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue