def test_read_workflow_as_member(self, creator_or_reader, selenium):
     """Test opening workflow as workflow member."""
     workflow = workflow_rest_facade.create_workflow(
         wf_members=[creator_or_reader])
     object_rest_facade.set_attrs_via_get(workflow.modified_by, ["email"])
     users.set_current_person(creator_or_reader)
     actual_workflow = ui_facade.get_obj(workflow)
     test_utils.obj_assert(actual_workflow, workflow)
Example #2
0
 def test_read_workflow_as_member(self, creator_or_reader, selenium):
   """Test opening workflow as workflow member."""
   workflow = workflow_rest_facade.create_workflow(
       wf_members=[creator_or_reader])
   object_rest_facade.set_attrs_via_get(workflow.modified_by, ["email"])
   users.set_current_person(creator_or_reader)
   actual_workflow = ui_facade.get_obj(workflow)
   test_utils.obj_assert(actual_workflow, workflow)
def login_as_creator_or_reader(creator_or_reader):
    """Logs in as the creator or reader."""
    users.set_current_person(creator_or_reader)
Example #4
0
def login_as_creator_or_reader(creator_or_reader):
  """Logs in as the creator or reader."""
  users.set_current_person(creator_or_reader)
Example #5
0
def login_as_person_with_role(person_with_role):
    """Logs in as person with role."""
    users.set_current_person(person_with_role)