Anorov / cloudflare-scrape

A Python module to bypass Cloudflare's anti-bot page.
MIT License
3.4k stars 462 forks source link

Update test_adapters.py #457

Open aria1991 opened 1 year ago

aria1991 commented 1 year ago

I made some modification to the previous version of the code . In this version of the script, I used pytestas the test framework and added a fixture to create and close the CloudflareAdapter instance automatically. I also replaced the sure library with the built-in assert statement and added more tests for the CloudflareAdapter class.