-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Marks don't pick up nested classes #199
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): i identified the internal transfer_markers function as the problem we should probably completely kill it in favor of the NodeKeywords mechanism |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): problem is compatibility - we should first allow to access markers conveniently without accessing a func's dict - this is already possible via node.keywords except that "keywords" also contains other names not just markers - probably not so bad, though. As to the original posters question we should decide if we want to support nested classes at all - i haven't seen them used until this issue was created. |
I realize this is rather old, but my usecase is thus: test_filename.py
I could certainly make either the methods flat, or the classes flat but this was my initial inclination towards a method of grouping the tests in a way that did not repeat the prefix of the class under test or the class method under test for each test name. |
therefore it is reopened, but unlikely to be fixed soon |
@hpk42 i propose killing marker transfer entirely (since its broken) and inheriting marker elements from parents |
(I didn't even knew nested classes were possible, heh).
Do you have an outline of how that would work? Obtain markers lazily from parents after collection? |
@nicoddemus i would prefer to get markers eagerly in order to avoid issues with nesting |
By eagerly you mean right after collection completes? Well I guess this is better discussed over a proposed implementation anyway. 😁 |
Created #2363, feel free to elaborate on that @RonnyPfannschmidt |
fixed by #3317 |
Hi, is this solved? |
Is this nested test working? |
Originally reported by: Anonymous
example:
only test_b is run. Not test_d
The text was updated successfully, but these errors were encountered: