code: def given_i_am_logged_in(context, username):
      
      user = get_user_model().objects.get(username=username)
      context.apiClient.force_authenticate(user=user)
docs: :type username: str
      :type context: behave.runner.Context