This PR replaces Nosetests with Pytest. Nosetests has been dead for a long time and Nose2 is nowhere near Pytest in terms of development activity, number of users and maturity.
What this PR does:
Replace Nose with Pytest
Remove "fixtures" that are messing with sys.modules. This was a huge antipattern actually, you never want tests to mess with global variables whose state you cannot track. Pytest fixtures do a similar thing to what you wanted them to do, but in a nice way of explicitly injecting them into tests.
Fix problems in sktensor/tests/test_tucker_hooi.py: You are importing sktensor.rotation.orthomax which doesn't exist and, judging from Git logs, never existed before. I don't think these tests ever passed in the past.
This PR replaces Nosetests with Pytest. Nosetests has been dead for a long time and Nose2 is nowhere near Pytest in terms of development activity, number of users and maturity.
What this PR does:
sys.modules
. This was a huge antipattern actually, you never want tests to mess with global variables whose state you cannot track. Pytest fixtures do a similar thing to what you wanted them to do, but in a nice way of explicitly injecting them into tests..travis.yml
file so integration testing can be used (you only need to enable it).What this PR doesn't do:
sktensor/tests/test_tucker_hooi.py
: You are importingsktensor.rotation.orthomax
which doesn't exist and, judging from Git logs, never existed before. I don't think these tests ever passed in the past.