I has a script that will generate a JSON file (let me call it data.json
) that for my django application, usually I can test it by running command
python manage.py testserver data.json
However, I would like to run this thing in unit tests rather than run this through shell (because it would start a server and never return back to the shell). I don't need to run any tests that depends on this fixture. I only want to make sure that the fixture generated can be loaded.