0

I'm using pytest-asyncio and can't find any documentation on how to ensure the order of the files running? For example if I have test_user.py and test_item.py and want test_user to run first, is there a way to do that?

foobar8675
  • 1,215
  • 3
  • 16
  • 26
  • 1
    The test modules are usually run in alphabetical order, I'm not aware that using `pytest-asyncio` could change that. If the order is important (which it usually shouldn't be), rename the modules or use something like `pytest-order` to order them. – MrBean Bremen Jun 07 '21 at 05:22
  • Thank you, that is very helpful. I agree on the order part, just some of my initialization is pretty slow, so I'd prefer to do it once. thanks again. – foobar8675 Jun 07 '21 at 15:38

0 Answers0