update tests

This commit is contained in:
Ricter Z 2023-02-06 17:27:42 +08:00
parent 0f54762229
commit 0aa8e1d358

View File

@ -13,7 +13,9 @@ class TestLogin(unittest.TestCase):
load_config()
constant.CONFIG['cookie'] = os.getenv('NHENTAI_COOKIE')
constant.CONFIG['useragent'] = os.getenv('NHENTAI_UA')
print(constant.CONFIG)
def test_cookie_set(self):
self.assertTrue(bool(constant.CONFIG['cookie']))
def test_cookie(self):
try: