Sick-Beard icon indicating copy to clipboard operation
Sick-Beard copied to clipboard

Add unit testing of webserve.py

Open hobeone opened this issue 12 years ago • 0 comments

Broken out from my peewee db change, this adds unit tests for webserve.py file.

  • Adds the testing hooks for cherrypy in cptestcase.py (snagged from the interwebs)
  • Adds database fixtures and a process to load them before each test case

I'd like to add a bunch more tests but I'm unsure how you'd like to proceed with these? One large pull requests or lots of small ones (and if lots of small ones how to do that). Any guidance appreciated.

hobeone avatar Mar 10 '13 23:03 hobeone