wrapped function to condense code

This commit is contained in:
simonwt 2026-04-01 21:31:15 +01:00
parent 7fa6d640e4
commit c27a89b8f9
5 changed files with 49 additions and 14 deletions

View file

@ -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",
)))
)))