{"id":23603,"library":"django-slowtests","title":"django-slowtests","description":"A Django test runner that identifies and reports your slowest tests. Version 1.1.1, stable but low maintenance.","status":"active","version":"1.1.1","language":"python","source_language":"en","source_url":"https://github.com/realpython/django-slow-tests","tags":["django","testing"],"install":[{"cmd":"pip install django-slowtests","lang":"bash","label":"standard"}],"dependencies":[],"imports":[{"note":"Module is under django_slowtests package","wrong":"from slowtests import SlowTestRunner","symbol":"SlowTestRunner","correct":"from django_slowtests.testrunner import SlowTestRunner"}],"quickstart":{"code":"# settings.py\nTEST_RUNNER = 'django_slowtests.testrunner.SlowTestRunner'\nSLOW_TEST_THRESHOLD_MS = 200  # optional\n\n# run tests\n# python manage.py test","lang":"python","description":"Configure the test runner in settings.py, then run tests as usual."},"warnings":[{"fix":"Use pytest with --durations option instead.","message":"The package does not support pytest; only works with Django's manage.py test.","severity":"gotcha","affected_versions":"all"},{"fix":"Set SLOW_TEST_THRESHOLD_MS to a value in milliseconds to only show tests above threshold.","message":"The output can be verbose; use SLOW_TEST_THRESHOLD_MS to filter.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from django_slowtests.testrunner import SlowTestRunner'.","cause":"Trying to import from wrong module name.","error":"ImportError: No module named 'slowtests'"},{"fix":"Ensure TEST_RUNNER is 'django_slowtests.testrunner.SlowTestRunner' and Django >= 1.8.","cause":"Incorrect test runner configuration or old Django version.","error":"AttributeError: 'TestRunner' object has no attribute 'slow_tests'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}