Aunsiels / pyformlang

A python library to manipulate formal languages and various automata
https://pypi.org/project/pyformlang/
MIT License
45 stars 10 forks source link

Suggestion: Migrate to pytest #23

Closed bygu4 closed 1 month ago

bygu4 commented 1 month ago

Unit tests in pyformlang are written using unittest framework, however, CI runs these tests with pytest. Of course, pytest supports unittest test cases, but still it looks strange. Maybe it would be better to convert existing tests to pytest ones?

To convert them, we can use utilities like unittest2pytest or pytestify.

Alternatively, we can get rid of pytest, and run tests with unittest instead.

Aunsiels commented 1 month ago

Thank you for the suggestion! I wrote the migration as you suggested and got rid of unittest. See commit 9d576c8f1edd63914e63c34b2d167173b2f566ad .