Beispiel #1
0
 def file_cache(self):
     return DefaultAgentFileCache(
         path=Path(os.devnull),
         max_age=0,
         disabled=True,
         use_outdated=True,
         simulation=False,
     )
Beispiel #2
0
 def make(self) -> DefaultAgentFileCache:
     return DefaultAgentFileCache(
         path=self.path,
         max_age=self.max_age,
         disabled=self.disabled | self.agent_disabled,
         use_outdated=self.use_outdated,
         simulation=self.simulation,
     )
Beispiel #3
0
def fc_agent_fixture(fc_conf):
    return DefaultAgentFileCache.from_json(fc_conf.configure())