Flask-Fixtures
Flask-Fixtures copied to clipboard
A simple library for adding database fixtures for unit tests using nothing but JSON or YAML.
This is necessary to avoid deprecation warning in PyYAML. see also: https://github.com/croach/Flask-Fixtures/issues/34 Signed-off-by: Martin Kloesch
Hello, Is there a way to keep the fixtures in the database after they are loaded? Like so I would be able to see them in my database and do...
I tryed to use flask-fixtures for testing my project with py.test. It turned out that the only way to make fixtures load is to make the test class inherite from...
I would like to be able to run the fixtures every test, for starting each one in a clean and controlled way. Right now, it seems that only sets the...
The `YAMLLoader`'s `load(filename)` method calls PyYAML's corresponding `load()` function without an explicit `Loader` class. This has been deprecated since PyYAML version 5.1 because of potential security issues and produces a...
I believe this paragraph is not code and should not be indented.
I have a simple database, and tried to load a fixture: [ { "model": "app.models.Devices", "records": [ { "uuid": "1", "name": "Agent" } ] }] it tries to parse the...
Hi @croach, I added way how to use custom Loaders instead of only relying on `FixtureLoader.__subclasses__()`. Custom loaders will take precedence over the loaders provided by the library. This PR...
Hi @croach, `_datetime_parser` sometimes produce strange result so I added option to disable it for those who don't really need datetime objects. I left it enabled by default, so there...
Hi @croach, Flask-SQLAlchemy since version 2.1 require Flask 0.10. thus I updated tox definition for pre context environments.