summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2011-09-14 13:29:43 +0100
committerDavid Laban <david.laban@collabora.co.uk>2011-09-15 18:01:15 +0100
commit9a320597afdb2825f81f7cffce4f8d4aed9542b1 (patch)
treecfc92439f085a49bd0b741d177cf1f3dcd13d0da /web
parenta042c70ff1caaa1bbb297e834db9df0abf426d8b (diff)
web/views: fix typo
"test in test" will always evaluate to true if test is a string.
Diffstat (limited to 'web')
-rw-r--r--web/insanityweb/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/insanityweb/views.py b/web/insanityweb/views.py
index 75f3b26..5667e15 100644
--- a/web/insanityweb/views.py
+++ b/web/insanityweb/views.py
@@ -191,7 +191,7 @@ def current(request):
if 'submit' in request.POST:
test = request.POST.get('test', '')
folder = request.POST.get('folder', '')
- if test in test and folder in settings.INSANITY_TEST_FOLDERS:
+ if test in test_names and folder in settings.INSANITY_TEST_FOLDERS:
runner.start_test(test, folder,
settings.INSANITY_TEST_FOLDERS[folder].get('extra-arguments', {}))
return redirect('web.insanityweb.views.current')