Exemple #1
0
 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"))
Exemple #2
0
 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)
Exemple #3
0
 def test_1(self):
     test = collect.DataCollector()
Exemple #4
0
 def test_4(self):
     test = collect.DataCollector()
     test.obtain_data()
     test.build_index_file()
     self.assertTrue(os.path.isfile("data_files/index.json"))
Exemple #5
0
 def test_2(self):
     test = collect.DataCollector()
     test.obtain_data