pierrepo / PBxplore

A suite of tools to explore protein structures with Protein Blocks :snake:
https://pbxplore.readthedocs.org/en/latest/
MIT License
28 stars 17 forks source link

Mordernize the tests #166

Closed jbarnoud closed 7 years ago

jbarnoud commented 7 years ago

So far, the tests rely on the Nose framework. Nose provides both a smart test runner, and some utility functions t write the tests. However, Nose is not maintained any more, and therefore is deprecated. Continuing to use Nose is not sustainable.

This pull request port the complete test suite from Nose to the still maintained Pytest. The port is made in two steps:

Here is a brief summary of the main pytest idioms:

There are some additional magic in pytest that I did not described here. See the website for more.

Finally, a preliminary step was required for the tests to pass. Ghostscript was not available in the latest travis run, likely due to some update. Because of this, all the tests involving weblogo were failing. I added ghostscript to the package to install using apt. I also removed cabal and haskell from the install as they were not needed anymore since pandoc is installed from a deb package. Latter on, it may be worth trying to install pandoc from apt as travis is rolling in a more recent version of ubuntu.

pierrepo commented 7 years ago

Bye bye Nose then...