Пример #1
0
 def file_cache(self, path, fs):
     return SNMPFileCache(
         path=path,
         max_age=999,
         disabled=False,
         use_outdated=False,
         simulation=False,
     )
Пример #2
0
 def make(self) -> SNMPFileCache:
     return SNMPFileCache(
         path=self.path,
         max_age=self.max_age,
         disabled=self.disabled | self.snmp_disabled,
         use_outdated=self.use_outdated,
         simulation=self.simulation,
     )
Пример #3
0
 def file_cache(self):
     return SNMPFileCache(
         path=Path(os.devnull),
         max_age=0,
         disabled=True,
         use_outdated=True,
         simulation=False,
     )
Пример #4
0
def fc_snmp_fixture(fc_conf):
    return SNMPFileCache.from_json(fc_conf.configure())