Skip to content

Commit fa3c769

Browse files
authored
Fix flakey test (#7875)
1 parent a66f348 commit fa3c769

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/admin/views/test_projects.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_gets_project(self, db_request):
114114
}
115115

116116
def test_non_normalized_name(self, db_request):
117-
project = ProjectFactory.create()
117+
project = ProjectFactory.create(name="NotNormalized")
118118
db_request.matchdict["project_name"] = str(project.name)
119119
db_request.current_route_path = pretend.call_recorder(
120120
lambda *a, **kw: "/admin/projects/the-redirect/"
@@ -228,7 +228,7 @@ def test_basic_query(self, db_request):
228228
}
229229

230230
def test_non_normalized_name(self, db_request):
231-
project = ProjectFactory.create()
231+
project = ProjectFactory.create(name="NotNormalized")
232232
db_request.matchdict["project_name"] = str(project.name)
233233
db_request.current_route_path = pretend.call_recorder(
234234
lambda *a, **kw: "/admin/projects/the-redirect/releases/"
@@ -323,7 +323,7 @@ def test_basic_query(self, db_request):
323323
}
324324

325325
def test_non_normalized_name(self, db_request):
326-
project = ProjectFactory.create()
326+
project = ProjectFactory.create(name="NotNormalized")
327327
db_request.matchdict["project_name"] = str(project.name)
328328
db_request.current_route_path = pretend.call_recorder(
329329
lambda *a, **kw: "/admin/projects/the-redirect/journals/"

0 commit comments

Comments
 (0)