Beispiel #1
0
 def send_envelope_to_agent(cls, envelope: Envelope, agent: str) -> None:
     """Send an envelope to an agent, using the stub connection."""
     # check added cause sometimes fails on win with permission error
     dir_path = Path(cls.t / agent)
     enforce(dir_path.exists(), "Dir path does not exist.")
     enforce(dir_path.is_dir(), "Dir path is not a directory.")
     write_envelope_to_file(envelope, str(cls.t / agent / DEFAULT_INPUT_FILE_NAME))
Beispiel #2
0
 def send_envelope_to_agent(cls, envelope: Envelope, agent: str):
     """Send an envelope to an agent, using the stub connection."""
     # check added cause sometimes fails on win with permission error
     dir_path = Path(cls.t / agent)
     assert dir_path.exists()
     assert dir_path.is_dir()
     write_envelope_to_file(envelope,
                            str(cls.t / agent / DEFAULT_INPUT_FILE_NAME))
Beispiel #3
0
 def send_envelope_to_agent(cls, envelope: Envelope, agent: str):
     """Send an envelope to an agent, using the stub connection."""
     write_envelope_to_file(envelope,
                            str(cls.t / agent / DEFAULT_INPUT_FILE_NAME))