Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Displayed method name with parameterized tests #2

Open
florentbr opened this issue Feb 19, 2014 · 0 comments
Open

Displayed method name with parameterized tests #2

florentbr opened this issue Feb 19, 2014 · 0 comments

Comments

@florentbr
Copy link

I'm using parameterized tests having a custom method name like :
"test_csv_params_from_file(v1=24,v2=2.34)"

The method name in the html report will be :
"3)"

This issue only appends when the method name contains a dot, otherwise the displayed method is correct.

REASON

The method name is extracted by parsing the method id on the last dot :
Line 600 > name = t.id().split('.')[-1]

FIX

Use the method name attribute instead :
Line 600 > name = t._testMethodName

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

No branches or pull requests

1 participant