DistributedTaskScheduling / JobAdder

Source code of the JobAdder project
GNU General Public License v3.0
2 stars 1 forks source link

Web api test #185

Closed ammen99 closed 4 years ago

ammen99 commented 4 years ago

Fixes #182 and several bugs I encountered along the way:

  1. web server thread is now marked as daemon so that it exits in the integration test
  2. Seems like in this case the __del__ of the WebApi is not called, thus I replaced it with manual shutdown called at the end
  3. mock_only was defaulting to True, now it is False. Took me quite a long time :(
  4. I don't test all web requests, because there are unit tests for them. I just wanted to test whether we correctly handle a) bad urls b) correct requests