Open msf opened 6 years ago
we have not tested on Django 1.11 yet
but this sounds like maybe you don't have:
INSTALLED_APPS = (
# ...
'django_concurrent_tests',
)
in your settings.py
?
That is needed so that our behind-the-scenes-magic manage.py
command exists
another thing you might need to customise in settings relates to this line of code:
getattr(settings, 'MANAGE_PY_PATH', 'manage.py')
I routinely make manage.py
executable with a shebang, so I don't need to python manage.py
but you may need to set MANAGE_PY_PATH="python manage.py"
or to a custom path for your project
(this is not mentioned in the README currently, but should be...)
@msf did you solve your issue?
I'm adding some tests for Django 1.10 and 1.11
current code is broken under 1.10+ ...they stopped using optparse
in favour of argparse
but I think this is in addition to your problem with paths above
Thanks, didn't test this again.
On Thu, Apr 5, 2018, 15:28 anentropic notifications@github.com wrote:
I'm adding some tests for Django 1.10 and 1.11
current code is broken under 1.10+ ...they stopped using optparse in favour of argparse
but I think this is in addition to your problem with paths above
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/depop/django-concurrent-test-helper/issues/5#issuecomment-378955776, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB9jK3jgOyuY26YMAcMrJ0LuLHzf6_Wks5tliomgaJpZM4S3e9e .
I have released version 0.4.2
with Django 1.11 support
Hi there, This project looks extremely useful. Attempting to reproduce a whole family of concurrency bugs that I've identified in some django apps I have led me here. Trying it on Django 1.11 fails with:
trying to use this inside test code similar to:
where
function_with_racy_access_to_database
returns an int. contents of results is:[None, None]