def test_get_company_details(self): get_company_details(count=2) self.assertEqual(2, Company.query.count())
def test_get_company_details(self): get_company_details(count=2) get_ratio_data() self.assertEqual(Company.query.count(), Company.query.join(Indicators).count())
def get_companies(throttle=True, index="NYSE", count=-1): """ Pull company data """ get_company_details(throttle=throttle, index=index, count=int(count))