In my tests, I want to log into my system with a user that is defined in fixtures. I also want to avoid hard-coding that user's data in my tests so that if any of the fixtures change in the future, I don't have to update all of my tests.
What is the best way to do this? Should I even worry about hard-coding fixture data in my tests?
Aucun commentaire:
Enregistrer un commentaire