fix tests--nosetests is overly excited about my code

This commit is contained in:
Victor Shnayder
2013-01-18 15:39:28 -05:00
parent 7ac36d2f43
commit 1411bd1a88

View File

@@ -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):
"""