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

Outline on feature and scenario failed on ValueError: too many values to unpack #315

Closed
camjan27 opened this issue Aug 16, 2019 · 2 comments

Comments

@camjan27
Copy link

camjan27 commented Aug 16, 2019

I want to have a testcase that is parametrized on both levels: Feature and scenario as in the example in the readme. However when I implemented it and run it, it returns the following error: ValueError: too many values to unpack

I did some investigation: It fails on keys, values = examples[0]["rows"].

examples[0]["rows"] returns [['start', 'eat', 'left'], [['12', '5', '7'], ['5', '4', '1']], ['fruits'], [['oranges'], ['apples']]].

I checked example_kwargs, which returns: {'eat': '5', 'fruits': 'oranges', 'start': '12', 'left': '7'}.
But I don't know if we can use this.

Can somebody confirm it, that scenario outline on both feature and scenario level don't work. I don't know if it worked before and so yes, which version of pytest-bdd should I use then.

@sliwinski-milosz
Copy link
Contributor

Maybe it is fixed with #272 but it has not been merged yet. Would be good also to add additional test.

@jsa34
Copy link
Collaborator

jsa34 commented Nov 13, 2024

This is no longer possible (examples at the feature level) now we are using the official Gherkin parser.

@jsa34 jsa34 closed this as completed Nov 13, 2024
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

3 participants