You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
Thanks for using Slackers. The 403 would occur if the header you are passing does not get verified correctly. For it to pass, you'd have to create a valid signature/timestamp combination. Slack itself explains how signatures get calculated: [docs]. You can create one on the fly in your test, or alternatively, you can calculate one manually and use the resulting string in your test. You should then use something like freeze_gun to have a fixed time in your test. Don't use real secrets, you can fake one as long as your secret in the test environment is the same as you are using to create the signature with.
Please let me know if this is helpful. I have some more time later today, when I can look into it more deeply for you.
Hello, could you please help me to create some examples how to test handlers?
eg.
This is a handler using a
save_text
function, I know I cam simply testsave_text
and other parts.This is my test:
But response I receive is
403
.Could you please recommend how can I test
handle_command
with pytest?The text was updated successfully, but these errors were encountered: