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

__main__.py: error: unrecognized arguments: --tavern-merge-ext-function-values #854

Open
ShehrozAli77 opened this issue Feb 28, 2023 · 3 comments
Assignees
Labels
Requires Documentation Documentation needs adding for this PR or to solve this issue

Comments

@ShehrozAli77
Copy link

I am trying to pass tavern-merge-ext-function-values flag through command-line as well as through pytest.ini but I keep getting unrecognised arguments. Attaching pics for more info
command
Directory
Dependencies

@michaelboulton
Copy link
Member

This is a case of bad documentation, it's been removed and is now the default, so you don't need to use that flag any more

@michaelboulton michaelboulton added the Requires Documentation Documentation needs adding for this PR or to solve this issue label Apr 2, 2023
@michaelboulton michaelboulton self-assigned this Apr 2, 2023
@ShehrozAli77
Copy link
Author

I even tried without the flag, but It would not work, The response from the extern function was only used, it would not merge other available variables.

@michaelboulton
Copy link
Member

Can you provide a reproducible example of that, there are some tests to make sure that it works properly: https://github.com/octathorp/tavern/blob/a41570faf28e87af87afbc3e4a50da1ba7e174eb/tests/integration/test_external_functions.tavern.yaml#L116-L118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Documentation Documentation needs adding for this PR or to solve this issue
Projects
None yet
Development

No branches or pull requests

2 participants