genRSS icon indicating copy to clipboard operation
genRSS copied to clipboard

Use pytest instead of doctest for testing

Open amsehili opened this issue 3 years ago • 3 comments

amsehili avatar Jul 25 '22 21:07 amsehili

I think I understand how the testing works. I will look into pytest tomorrow. I assume we manually need to make a correct RSS 2.0 file, and then compare the program against it. If so, I will also need to look into RSS 2.0, because I don't know what it is or what it does yet.

EDIT: We might already have the RSS 2.0 file from the doctest testing?

BasDeGamer avatar Aug 09 '22 19:08 BasDeGamer

What would be the benefit of getting rid of the doctests? If there isn't enough benefit, it's probably better/easier to keep them instead.

denilsonsa avatar Feb 01 '24 03:02 denilsonsa

We can keep them as they're part of the documentation. The title (original: Get rid of doctests, use pytest) can be confusing as the goal is to rely on pytest rather then doctest for testing.

amsehili avatar Feb 01 '24 19:02 amsehili