Skip to content

Commit

Permalink
🧪 test: ut passed
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-yang-biz committed Mar 24, 2024
1 parent 3332dc7 commit f786ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/fetchers/test_akshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ def test_fetch_stock_list(self):
df = fetch_stock_list()
self.assertTrue(len(df) >= 1000)
self.assertSetEqual(set(df["type"]), set(["stock", "index"]))
filter = df[df.code == "000003.SZ"]
filter = df.code == "000003.SZ"
self.assertEqual(df[filter].iloc[0]["exit"], datetime.date(2002, 6, 14))

filter = df[df.code == "000001.SH"]
filter = df.code == "000001.SH"
self.assertEqual(df[filter].iloc[0]["alias"], "上证指数")

0 comments on commit f786ed9

Please sign in to comment.