python3-mal
python3-mal copied to clipboard
Upgrade tests: mock mal responses, refactor code base to testable chunks
trafficstars
Instead of going to the MAL server for response there should be a downloaded html file which would be used to do the tests on. The html file can should be updated monthly.
Possible solutions:
- Caching proxy: https://github.com/CompileInc/cappy
- static html files
Also it would be ideal to refactor the code to have testable units and avoid bugs like #25 and #26 .
tests now run through a caching proxy (squid) 57a4133