taverntesting / tavern

A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax
https://taverntesting.github.io/
MIT License
1.02k stars 193 forks source link

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

Open ShehrozAli77 opened 1 year ago

ShehrozAli77 commented 1 year ago

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 commented 1 year ago

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

ShehrozAli77 commented 1 year ago

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 commented 1 year ago

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