update tests

This commit is contained in:
Ricter Z 2023-02-06 17:44:28 +08:00
parent c66fa5f816
commit 3de4159a39

View File

@ -15,7 +15,7 @@ class TestLogin(unittest.TestCase):
constant.CONFIG['useragent'] = os.getenv('NHENTAI_UA') constant.CONFIG['useragent'] = os.getenv('NHENTAI_UA')
def test_cookie_set(self): def test_cookie_set(self):
self.assertTrue(bool(constant.CONFIG['cookie'])) self.assertTrue(constant.CONFIG['useragent'].startswith('Mozilla'))
def test_cookie(self): def test_cookie(self):
try: try: