I am trying to maintain a pool of Users with a parameter of availability so that PyTest can pick an available user from the list.
But I cannot figure out where to place it such that even on running multiple tests, the object doesn't get destroyed.
My User pool looks like this:
class User:
def getId()
def getPwd()
def getAvailability()
Basically, I want to configure PyTest so that before starting every test, it takes the available user from the pool and changes it's status to False
.
Any help in configuring the conftest.py would be helpful.