Skip to content

Conversation

@AndreFGard
Copy link

This pr fixes a bug with parametrized tests (@pytest.mark.parametrize). Previously, any parametrized test would raise a KeyError on TestOrder.lineno because that function didnt account for the 'file.py::function[param_id]' Hierarchy string format

Fixes #3

Changes:

Another check that deals with this was added and the function was refactored into get_testInfo, as to allow reuse in TestOrder.function_source, which presented the same buggy behavior previously

Added a test to guarantee that parametrized tests work

Previously, any parametrized test would raise a KeyError on TestOrder.lineno because that function didnt account for the 'file.py::function[param_id]' Hierarchy string format. Another check that deals with this was added and the function was repurposed into get_testInfo, as to allow reuse in TestOrder.function_source, which presented the same buggy behavior previously
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

Successfully merging this pull request may close these issues.

Autograder does not work with parameterized tests.

1 participant