3 ms·
Yeah, I don't actually make deep use of pytest functionality. The whole thing used to be runnable without pytest for ease of use (with a __main__ block finding
by scrollaway 10y ago
Yeah, I don't actually make deep use of pytest functionality. The whole thing used to be runnable without pytest for ease of use (with a __main__ block finding and running all test() functions).
I should definitely use fixtures - been meaning to! It's why I love pytest, you don't need to go deep into it to make a high quality test suite.
- nilliams 10y agoPlease don't move to fixtures, your tests are great as-is (thanks for sharing). See my comment above!
- scrollaway 10y agoI agree with it and hold the same view, which is why I haven't moved to them yet. My plan was to get rid of the "game = prepare_game(...)" line that's present on every single test, and have the game be passed as an argument to the tests which AIUI pytest supports.