Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python function not callable from tavern script for saving #946

Open
ShreyanshAyanger-Nykaa opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@ShreyanshAyanger-Nykaa
Copy link

Hi, I am calling a save function after getting response from my api, now in the response received i need to format string and save only few elements present,
response: status_code: 200 save: headers: res_key: $ext: function: testing_utils:extract_sessid extra_kwargs: head: headers
however, my tavern yaml is unable to call extract_string method in testing_utils file,
But other functions written in testing_utils are working fine with following syntax
verify_response_with: - function: testing_utils:check_jsonpath_value

Please help, basically in above way mentioned, the testing_utils file is not accessible ( inside save function) but in same tavern script existing test cases are able to access the same ( with verify_response_with).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant