File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,13 +133,15 @@ class Benchmark(models.Model):
133133
134134 name = models .CharField (unique = True , max_length = 30 )
135135 parent = models .ForeignKey ('self' , verbose_name = "parent" ,
136- help_text = "allows to group benchmarks in hierarchies" , null = True , default = None )
136+ help_text = "allows to group benchmarks in hierarchies" ,
137+ null = True , blank = True , default = None )
137138 benchmark_type = models .CharField (max_length = 1 , choices = B_TYPES , default = 'C' )
138139 description = models .CharField (max_length = 300 , blank = True )
139140 units_title = models .CharField (max_length = 30 , default = 'Time' )
140141 units = models .CharField (max_length = 20 , default = 'seconds' )
141142 lessisbetter = models .BooleanField ("Less is better" , default = True )
142- default_on_comparison = models .BooleanField ("Default on comparison page" , default = True )
143+ default_on_comparison = models .BooleanField (
144+ "Default on comparison page" , default = True )
143145
144146 def __unicode__ (self ):
145147 return self .name
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2-
32import os
43import re
54import unittest
1312
1413DEFAULT_TESTFILE_PATTERN = re .compile (r'^[a-zA-Z0-9].*\.py' )
1514
15+
1616def get_suite (* names , ** kwargs ):
1717 '''Creates (or updates) a ``TestSuite`` consisting of the tests under one or
1818 more modules.
@@ -44,7 +44,7 @@ def get_suite(*names, **kwargs):
4444 suite = kwargs .get ('suite' ) or unittest .TestSuite ()
4545 # determine is_test_module
4646 is_test_module = kwargs .get ('is_test_module' , DEFAULT_TESTFILE_PATTERN )
47- if isinstance (is_test_module , basestring ): # look for exact match
47+ if isinstance (is_test_module , basestring ): # look for exact match
4848 is_test_module = re .compile (is_test_module + '$' ).match
4949 elif hasattr (is_test_module , 'match' ):
5050 is_test_module = is_test_module .match
You can’t perform that action at this time.
0 commit comments