def test_5(self): test = collect.DataCollector() test.obtain_data() test.build_index_file() test.build_sector_files() test_result = True for sector in test.sectors: self.assertTrue( os.path.isfile("data_files/types/" + sector.replace(" ", "_") + ".json"))
def test_3(self): test = collect.DataCollector() test.obtain_data() with open("data_files/manifest.json", "r") as f: symbols = json.load(f) test_result = True for symbol in symbols['input_stocks']: if not os.path.isfile("data_files/storage/" + symbol + "_data.json"): test_result = False self.assertTrue(test_result)
def test_1(self): test = collect.DataCollector()
def test_4(self): test = collect.DataCollector() test.obtain_data() test.build_index_file() self.assertTrue(os.path.isfile("data_files/index.json"))
def test_2(self): test = collect.DataCollector() test.obtain_data