MLH-Fellowship / orientation-project-python-24.FAL.A

Orientation Project (Python for 24.FAL.A)
0 stars 9 forks source link

Pytest results is not independent of test order #46

Closed PeanutButterRat closed 9 hours ago

PeanutButterRat commented 3 days ago

Pytest's results change depending on what order the tests are defined in. Currently, the test cases pass but if you move the test_delete_skill definition above test_skill, the tests will fail. This potentially indicates that the state of test_client carries over between each test which is unexpected and I would consider to be incorrect behavior. Each test should be independent of the last to prevent breaking changes in the future.

PeanutButterRat commented 3 days ago

I'll try to tackle this issue for now but feel free to let me know if anyone else would like to take this one.