10up / wpcli-vulnerability-scanner

WP-CLI command for checking installed plugins and themes for vulnerabilities reported on wpvulndb.com
MIT License
278 stars 40 forks source link

Mock WPScan API for Functional tests #97

Open iamdharmesh opened 1 year ago

iamdharmesh commented 1 year ago

Is your enhancement related to a problem? Please describe.

Functional tests using WPScan as an API provider fail due to the Daily API limits. To fix this failure and make functional tests work properly, we can mock WPScan API calls.

Designs

We have implemented an API mock in https://github.com/10up/classifai/pull/334 we can follow something similar here.

Describe alternatives you've considered

No response

Code of Conduct