黑猫APP

This commit is contained in:
Harold
2026-04-20 13:06:02 +08:00
parent f9a273debd
commit 91ef4cecb3
2 changed files with 13 additions and 12 deletions
+6
View File
@@ -12,6 +12,12 @@ Spider = MODULE.Spider
class TestHeiMaoAppSpider(unittest.TestCase):
def test_module_uses_crypto_aes(self):
source = (ROOT / "黑猫APP.py").read_text(encoding="utf-8")
self.assertIn("from Crypto.Cipher import AES", source)
self.assertIn("from Crypto.Util.Padding import pad, unpad", source)
self.assertNotIn("from cryptography", source)
def setUp(self):
Spider._instance = None
self.spider = Spider()