Skip to content

Commit

Permalink
allow_exist -> force_recreate for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
adehad committed Sep 17, 2021
1 parent 9eead8a commit f6e5808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ def _remove_project(self, project_key):
)

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

if allow_exist and self._project_exists(project_key):
if not force_recreate and self._project_exists(project_key):
pass
else:
self._remove_project(project_key)
Expand Down Expand Up @@ -293,7 +293,7 @@ def create_some_data(self):

self.project_a_id = self._create_project(self.project_a, self.project_a_name)
self.project_b_id = self._create_project(
self.project_b, self.project_b_name, allow_exist=True
self.project_b, self.project_b_name, force_recreate=True
)

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

0 comments on commit f6e5808

Please sign in to comment.