Skip to content

Commit 0927b08

Browse files
committed
allow_exist -> force_recreate for clarity
1 parent e18a816 commit 0927b08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ def _remove_project(self, project_key):
239239
)
240240

241241
def _create_project(
242-
self, project_key: str, project_name: str, allow_exist: bool = False
242+
self, project_key: str, project_name: str, force_recreate: bool = False
243243
) -> int:
244244
"""Create a project and return the id"""
245245

246-
if allow_exist and self._project_exists(project_key):
246+
if not force_recreate and self._project_exists(project_key):
247247
pass
248248
else:
249249
self._remove_project(project_key)
@@ -293,7 +293,7 @@ def create_some_data(self):
293293

294294
self.project_a_id = self._create_project(self.project_a, self.project_a_name)
295295
self.project_b_id = self._create_project(
296-
self.project_b, self.project_b_name, allow_exist=True
296+
self.project_b, self.project_b_name, force_recreate=True
297297
)
298298

299299
sleep(1) # keep it here as often Jira will report the

0 commit comments

Comments
 (0)