Beispiel #1
0
 def fetcher(self, file_cache: DefaultAgentFileCache) -> ProgramFetcher:
     return ProgramFetcher(
         file_cache,
         cmdline="/bin/true",
         stdin=None,
         is_cmc=False,
     )
Beispiel #2
0
 def fetcher(self, file_cache):
     return ProgramFetcher(
         file_cache,
         cmdline="/bin/true",
         stdin=None,
         is_cmc=False,
     )
Beispiel #3
0
 def test_fetcher_deserialization(self, fetcher: ProgramFetcher) -> None:
     other = type(fetcher).from_json(json_identity(fetcher.to_json()))
     assert isinstance(other, ProgramFetcher)
     assert other.cmdline == fetcher.cmdline
     assert other.stdin == fetcher.stdin
     assert other.is_cmc == fetcher.is_cmc