From f786ed97ce1f533de22200b9e6dbf8235213841f Mon Sep 17 00:00:00 2001 From: aaron_yang Date: Sun, 24 Mar 2024 23:50:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test:=20ut=20passed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/fetchers/test_akshare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fetchers/test_akshare.py b/tests/fetchers/test_akshare.py index 2c489e2..33f4492 100644 --- a/tests/fetchers/test_akshare.py +++ b/tests/fetchers/test_akshare.py @@ -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"], "上证指数")