old_contents: import cis_publisher
  
  # from moto import mock_lambda
  import boto3
  import json
  
  
  class TestHRIS(object):
      def test_parse_hris(self):
          hris_data = {}
          with open("tests/fixture/workday.json") as fd:
              hris_data = json.load(fd)
  
          hris = cis_publisher.hris.HRISPublisher()
          profiles = hris.convert_hris_to_cis_profiles(hris_data, user_ids=None)
          print("parsed {} profiles".format(len(profiles)))
          c = 0
          for p in profiles:
              assert p.primary_email.value is not None
              if hris_data["Report_Entry"][c]["IsManager"] == "TRUE":
                  assert p.staff_information.manager.value is True
              else:
                  assert p.staff_information.manager.value is False
  
              # Just info for debugging
              d = p.as_dict()
              si = {}
              for i in d["staff_information"]:
                  si[i] = d["staff_information"][i]["value"]
              print(p.primary_email.value, p.last_name.value, d["access_information"]["hris"]["values"], si)
              c = c + 1
  
  
  # Not yet supported by moto
  #    def test_reentrancy(self):
  #        hris_data = {}
  #        with open("tests/fixture/workday.json") as fd:
  #            hris_data = json.load(fd)
  #
  #        hris = cis_publisher.hris.HRISPublisher(context={"function_name": "test"})
  #        hris.publish()
  
new_contents: import cis_publisher
  
  # from moto import mock_lambda
  ## import boto3
  import json
  
  
  class TestHRIS(object):
      def test_parse_hris(self):
          hris_data = {}
          with open("tests/fixture/workday.json") as fd:
              hris_data = json.load(fd)
  
          hris = cis_publisher.hris.HRISPublisher()
          profiles = hris.convert_hris_to_cis_profiles(hris_data, user_ids=None)
          print("parsed {} profiles".format(len(profiles)))
          c = 0
          for p in profiles:
              assert p.primary_email.value is not None
              if hris_data["Report_Entry"][c]["IsManager"] == "TRUE":
                  assert p.staff_information.manager.value is True
              else:
                  assert p.staff_information.manager.value is False
  
              # Just info for debugging
              d = p.as_dict()
              si = {}
              for i in d["staff_information"]:
                  si[i] = d["staff_information"][i]["value"]
              print(p.primary_email.value, p.last_name.value, d["access_information"]["hris"]["values"], si)
              c = c + 1
  
  
  # Not yet supported by moto
  #    def test_reentrancy(self):
  #        hris_data = {}
  #        with open("tests/fixture/workday.json") as fd:
  #            hris_data = json.load(fd)
  #
  #        hris = cis_publisher.hris.HRISPublisher(context={"function_name": "test"})
  #        hris.publish()
  
subject: test not yet supported