From 3de4159a398d5f5154661cb2d6024a9e9423ce49 Mon Sep 17 00:00:00 2001 From: Ricter Z <ricterzheng@gmail.com> Date: Mon, 6 Feb 2023 17:44:28 +0800 Subject: [PATCH] update tests --- tests/test_login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_login.py b/tests/test_login.py index 924a8bc..a0bf48e 100644 --- a/tests/test_login.py +++ b/tests/test_login.py @@ -15,7 +15,7 @@ class TestLogin(unittest.TestCase): constant.CONFIG['useragent'] = os.getenv('NHENTAI_UA') def test_cookie_set(self): - self.assertTrue(bool(constant.CONFIG['cookie'])) + self.assertTrue(constant.CONFIG['useragent'].startswith('Mozilla')) def test_cookie(self): try: