def test_collect(self): storage = Storage(self.ROOT) path = storage.download(kind="XF", year=2018) ledger = storage.download_ledger(directory=f"{self.ROOT}/processed") self.assertGreater(len(ledger.data), 1) self.assertTrue(Path(ledger.path).exists) loaded = ledger.collect(edinet_code="E00021") self.assertGreater(len(loaded), 0)
def test_download_ledger(self): storage = Storage(self.ROOT) ledger = storage.download_ledger(directory=f"{self.ROOT}/processed") self.assertGreater(len(ledger.data), 1) self.assertTrue(Path(ledger.path).exists)