I am using py.test and wonder if/how it is possible to retrieve the name of the currently executed test within the setup method that is invoked before running e
setup
Try type(self).__name__ perhaps?
type(self).__name__