I am using unittest to test my Flask application, and nose to actually run the tests.
My first set of tests is to ensure the testing enviro
For your use case there's setUpModule() function:
If an exception is raised in a
setUpModulethen none of the tests in the module will be run and thetearDownModulewill not be run. If the exception is aSkipTestexception then the module will be reported as having been skipped instead of as an error.
Test your environment inside this function.