djangosnippets.org icon indicating copy to clipboard operation
djangosnippets.org copied to clipboard

UserWarning when running tests

Open chriswedgwood opened this issue 3 years ago • 0 comments

When running the following

$ python manage.py test --settings=djangosnippets.settings.testing

I get the following error

/Users/chriswedgwood/DjangoProjects/djangosnippets.org/venv/lib/python3.8/site-packages/django/contrib/auth/__init__.py:76: UserWarning: No request passed to the backend, unable to rate-limit. Username was 'a'
  user = backend.authenticate(request, **credentials)

Its annoying so will look to suppress it

chriswedgwood avatar Jan 28 '22 10:01 chriswedgwood