Skip to content
Snippets Groups Projects
Commit 9facf187 authored by Calum Mackervoy's avatar Calum Mackervoy Committed by Jean-Baptiste
Browse files

update: performance tests separated into their own runner

parent a11164b8
No related branches found
No related tags found
1 merge request!161Performance
import sys
import django
from djangoldp.tests import settings_default
from django.conf import settings
# configure settings not to use pagination
settings.configure(default_settings=settings_default,
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': None
})
django.setup()
from django.test.runner import DiscoverRunner
test_runner = DiscoverRunner(verbosity=1)
failures = test_runner.run_tests([
'djangoldp.tests.tests_performance',
])
if failures:
sys.exit(failures)
...@@ -25,7 +25,7 @@ failures = test_runner.run_tests([ ...@@ -25,7 +25,7 @@ failures = test_runner.run_tests([
'djangoldp.tests.tests_pagination', 'djangoldp.tests.tests_pagination',
'djangoldp.tests.tests_inbox', 'djangoldp.tests.tests_inbox',
'djangoldp.tests.tests_backlinks_service', 'djangoldp.tests.tests_backlinks_service',
# 'djangoldp.tests.tests_temp' #'djangoldp.tests.tests_temp'
]) ])
if failures: if failures:
sys.exit(failures) sys.exit(failures)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment