From 1411bd1a88e33a2a6e269e2894ffcebdf0f69cf0 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Fri, 18 Jan 2013 15:39:28 -0500 Subject: [PATCH] fix tests--nosetests is overly excited about my code --- lms/djangoapps/courseware/access.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lms/djangoapps/courseware/access.py b/lms/djangoapps/courseware/access.py index c7e09526c9..a176d2a171 100644 --- a/lms/djangoapps/courseware/access.py +++ b/lms/djangoapps/courseware/access.py @@ -338,6 +338,10 @@ def course_beta_test_group_name(location): """ return 'beta_testers_{0}'.format(Location(location).course) +# nosetests thinks that anything with _test_ in the name is a test. +# Correct this (https://nose.readthedocs.org/en/latest/finding_tests.html) +course_beta_test_group_name.__test__ = False + def _course_instructor_group_name(location): """