Skip to content
Discussion options

You must be logged in to vote

Hi @rafaelcs,

To get the nodeid/paths of the collected items, you should look into the items themselves after the collection is done, possibly with the pytest_collection_finish hook:

def pytest_collection_finish(session):
    for item in session.items:
        print(item.nodeid, "=>", item.fspath)

During pytest_configure that's not possible because collection has not even started yet.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rafaelcs
Comment options

@nicoddemus
Comment options

Answer selected by RonnyPfannschmidt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants