Tribler / anydex-core

The Universal Decentralized Exchange
GNU Lesser General Public License v3.0
9 stars 6 forks source link

Convert tests to use pytest #54

Open devos50 opened 3 years ago

devos50 commented 3 years ago

We should convert the tests to use pytest, instead of nose.

devos50 commented 3 years ago

@Solomon1732 this is something that's quite high on my wish list. If you're interested in learning more about pytest, you might want to start out with converting one or more tests (e.g., test_match_queue.py), using fixtures to reduce code duplication and to increase readability 👍

Solomon1732 commented 3 years ago

I'll do it after the current PR :+1:

devos50 commented 3 years ago

I converted a few tests in https://github.com/Tribler/anydex-core/pull/69

dannysepler commented 3 years ago

hi! i wrote a pip package to help out with this sort of refactor (https://github.com/dannysepler/pytestify) and i'm just snooping around github looking for people to test it out 🙃 -- totally cool if it doesn't end up working for you!