Ejemplo n.º 1
0
 def test_all_mods_integrity(self):
     from FactorioManager import remoteapi
     from FactorioManager.ModFile import ModFile
     for i,mod in enumerate(remoteapi.ModIndex.list):
         with self.subTest(mod["title"]):
             print("Testing mod {} of {}.".format(i, len(remoteapi.ModIndex.list)))
             loc = remoteapi.download(mod)
             ret = ModFile.checkfile(loc)
             if ret != True:
                 raise ret
Ejemplo n.º 2
0
 def test_all_mods_integrity(self):
     from FactorioManager import remoteapi
     from FactorioManager.ModFile import ModFile
     for i, mod in enumerate(remoteapi.ModIndex.list):
         with self.subTest(mod["title"]):
             print("Testing mod {} of {}.".format(
                 i, len(remoteapi.ModIndex.list)))
             loc = remoteapi.download(mod)
             ret = ModFile.checkfile(loc)
             if ret != True:
                 raise ret
Ejemplo n.º 3
0
 def test_mod_download(self):
     from FactorioManager import remoteapi
     mod = remoteapi.ModIndex.list[0]
     loc = remoteapi.download(mod)
     from FactorioManager.ModFile import ModFile
     ModFile.checkfile(loc)
Ejemplo n.º 4
0
 def test_mod_download(self):
     from FactorioManager import remoteapi
     mod = remoteapi.ModIndex.list[0]
     loc = remoteapi.download(mod)
     from FactorioManager.ModFile import ModFile
     ModFile.checkfile(loc)