def test_advertisement(self):
Banner.objects.create()
response = self.client.get('/advertisement')
self.assertEqual(response.status_code, 200)
import file mismatch:
imported module 'apps.catalog.tests' has this __file__ attribute:
/home/ilya/workspace/myproject/apps/catalog/tests
which is not the same as the test file we want to collect:
/home/ilya/workspace/myproject/apps/catalog/tests.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
{{ form.as_p }}
{{ form.username }}
{{ form.username.errors }}
{{ form.email }}
{{ form.email.errors }}
..
# prod
django>=1.9,<1.10
djangorestframework
jinja2
django-jinja
mysqlclient
-e git+https://github.com/un1t/django-multidb-router.git#egg=django-multidb-router
django-cleanup
celery
flower
redis
pytz
more_itertools
requests
python-social-auth
boto
pillow
pytils
furl
six
python-dateutil
django-mptt
elasticsearch
elasticsearch-dsl
django-recaptcha
click
decorator
urlcan
newrelic
gitpython
python-memcached
fuzzywuzzy
python-Levenshtein
imagehash
python-geohash
haversine
jsonfield
# debug
django-debug-toolbar
django-debug-toolbar-template-timings
line_profiler
ipdb
objgraph
# test
pytest
pytest-django
pytest-cov
pytest-pep8
pytest-xdist
flexmock
factory-boy
upload = models.FileField(upload_to='uploads/%Y/%m/%d/')
select * from (select * from transfers order by date desc) as t group by person_id