Skip to content

Commit

Permalink
[#124] Fix code quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
javrasya committed Dec 16, 2019
1 parent 7052e7a commit 78c7a97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions features/steps/basic_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def group(context, name):


@given('a user with name {name:w} with permission "{permission_name:ws}"')
def user(context, name, permission_name):
def user_with_permission(context, name, permission_name):
from django.contrib.auth.models import Permission
from river.models.factories import UserObjectFactory

Expand All @@ -28,7 +28,7 @@ def user(context, name, permission_name):


@given('a user with name {name:w} with group "{group_name:ws}"')
def user(context, name, group_name):
def user_with_group(context, name, group_name):
from django.contrib.auth.models import Group
from river.models.factories import UserObjectFactory

Expand Down Expand Up @@ -78,7 +78,7 @@ def transition(context, source_state_label, destination_state_label, workflow_id


@given('an authorization rule for the transition "{source_state_label:ws}" -> "{destination_state_label:ws}" with permission "{permission_name:ws}" and priority {priority:d}')
def authorization_rule(context, source_state_label, destination_state_label, permission_name, priority):
def authorization_rule_with_permission(context, source_state_label, destination_state_label, permission_name, priority):
from django.contrib.auth.models import Permission
from river.models.factories import TransitionApprovalMetaFactory

Expand All @@ -94,7 +94,7 @@ def authorization_rule(context, source_state_label, destination_state_label, per


@given('an authorization rule for the transition "{source_state_label:ws}" -> "{destination_state_label:ws}" with group "{group_name:ws}" and priority {priority:d}')
def authorization_rule(context, source_state_label, destination_state_label, group_name, priority):
def authorization_rule_with_group(context, source_state_label, destination_state_label, group_name, priority):
authorization_rule_with_groups(context, source_state_label, destination_state_label, [group_name], priority)


Expand Down
2 changes: 1 addition & 1 deletion features/steps/issue_tracking_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ def close_issue(context, workflow_object_identifier, username):


@when('"{workflow_object_identifier:ws}" is attempted to be re-opened by {username:w}')
def close_issue(context, workflow_object_identifier, username):
def re_open_issue(context, workflow_object_identifier, username):
_approve(context, workflow_object_identifier, username, "Re-Opened")

0 comments on commit 78c7a97

Please sign in to comment.