Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Specify internal employee project visibility #29

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

johnboyes
Copy link
Contributor

No description provided.

]
)


@step("An internal employee can see all projects")
Copy link

@aemulus aemulus Mar 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because there are a lot of layers in the python module and in the Jira logic over which we don't have control and if they change the simple checking of the same number of projects may lead to false positives. It might be safer to check if they can see the same number projects and if their project id's match:

@step("An internal employee can see all projects")
def an_internal_employee_can_see_all_projects():
	internal_emp_proj = [_.raw['id'] for _ in Bot.internal_employee.projects()]
	admin_emp_proj = [_.raw['id'] for _ in Bot.jira_admin.projects()]
	assert len([_ for _ in admin_emp_proj if _ not in internal_emp_proj]) == 0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants