You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The py.test and nose libraries support standalone test functions (the unittest standard library does not). I'd like to add support for these standalone functions to the Flask-Fixtures library.
If we wrap each function with a class that inherits from the FixturesMixin (a simplified example listed below) we'll be able to use standalone functions even when using the unittest library. This may be a good or bad thing since it means that decorated functions will work with unittest, but regular functions without the decorator will not, which may be a bit confusing to anyone writing tests. The alternative is just to wrap the test function in another function and the py.test and nose libraries will work properly, and unittest will continue to not work with any standalone functions.
The py.test and nose libraries support standalone test functions (the unittest standard library does not). I'd like to add support for these standalone functions to the Flask-Fixtures library.
If we wrap each function with a class that inherits from the FixturesMixin (a simplified example listed below) we'll be able to use standalone functions even when using the
unittest
library. This may be a good or bad thing since it means that decorated functions will work withunittest
, but regular functions without the decorator will not, which may be a bit confusing to anyone writing tests. The alternative is just to wrap the test function in another function and the py.test and nose libraries will work properly, andunittest
will continue to not work with any standalone functions.The text was updated successfully, but these errors were encountered: