BUG: stdout is bytes on python3
discovered on speed.pypy.org
Where should I add a test?
how do I run the tests? python -mpytest codespeed/tests doesn't work out of the box for me, some django setup is missing
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, \
but settings are not configured. You must either define the environment variable \
DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
how do I run the tests?
python -mpytest codespeed/testsdoesn't work out of the box for me, some django setup is missing
It's not configured to run with pytest, you can run tests the standard django way:
python manage.py test
I need to get used to django unit tests. For instance, I am used to the testing framework supplying a tmp_dir so that I could set up a hg/git repo, but spent quite a while searching for the recommended way to do this in django so that the directory is erased when tests finish. Any hints?
OTOH, it seems like a lot of work to set up testing for a small fix...
An example of how to do this with django tests: https://swapps.com/blog/testing-files-with-pythondjango/
need to decode. Test added