From 81386428aa7205ac5a726b0bf217e4db2abe5728 Mon Sep 17 00:00:00 2001
From: Seok Won <ikr@kakao.com>
Date: Sat, 9 Jan 2021 18:25:19 +0900
Subject: [PATCH] Update test_parser.py

---
 python/tests/test_parser.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/tests/test_parser.py b/python/tests/test_parser.py
index c08cc55..30dc046 100644
--- a/python/tests/test_parser.py
+++ b/python/tests/test_parser.py
@@ -28,7 +28,8 @@ def parser():
     # req = requests.get(f"{ADDRESS}?mode=list&&articleLimit={LENGTH}&article.offset=0")
     context = ssl._create_unverified_context()
     result = urlopen(
-        f"{ADDRESS}?mode=list&&articleLimit={LENGTH}&article.offset=0", context=context
+        f"{ADDRESS}?mode=list&srCategoryId=3&srSearchKey=&srSearchVal=&articleLimit={LENGTH}&article.offset=0",
+        context=context,
     )
 
     html = result.read()
@@ -64,7 +65,7 @@ def test_parse():
         postLink = posts[i].get("href")
         postDate = dates[i].text.strip()
         postWriter = writers[i].text
-        assert int(postId) > 10000, f"postId is None."
+        # assert int(postId) > 10000, f"postId is None."
         assert postLink is not None, f"postLink is None."
         assert postTitle is not None, f"postTitle is None."
         assert postDate is not None, f"postDate is None."
-- 
GitLab