1
1
from __future__ import absolute_import
2
2
3
- import django
4
3
from django .utils import timezone
5
4
from exam import fixture
6
5
@@ -24,10 +23,9 @@ def test_simple(self):
24
23
project1 = self .create_project (teams = [team ], name = "foo" )
25
24
project2 = self .create_project (teams = [team ], name = "bar" )
26
25
27
- if django .VERSION [:2 ] >= (1 , 8 ):
28
- # Depending on test we run migrations in Django 1.8. This causes
29
- # extra rows to be created, so remove them to keep this test working
30
- SavedSearch .objects .filter (is_global = True ).delete ()
26
+ # Depending on test we run migrations in Django 1.8. This causes
27
+ # extra rows to be created, so remove them to keep this test working
28
+ SavedSearch .objects .filter (is_global = True ).delete ()
31
29
32
30
SavedSearch .objects .create (
33
31
project = project1 , name = "bar" , query = DEFAULT_SAVED_SEARCHES [0 ]["query" ]
@@ -71,10 +69,9 @@ def get_response(self, *args, **params):
71
69
return super (OrgLevelOrganizationSearchesListTest , self ).get_response (* args , ** params )
72
70
73
71
def create_base_data (self ):
74
- if django .VERSION [:2 ] >= (1 , 8 ):
75
- # Depending on test we run migrations in Django 1.8. This causes
76
- # extra rows to be created, so remove them to keep this test working
77
- SavedSearch .objects .filter (is_global = True ).delete ()
72
+ # Depending on test we run migrations in Django 1.8. This causes
73
+ # extra rows to be created, so remove them to keep this test working
74
+ SavedSearch .objects .filter (is_global = True ).delete ()
78
75
79
76
team = self .create_team (members = [self .user ])
80
77
SavedSearch .objects .create (
0 commit comments