Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to enable test mode #11

Open
TylerRick opened this issue Apr 9, 2020 · 1 comment
Open

Add an option to enable test mode #11

TylerRick opened this issue Apr 9, 2020 · 1 comment

Comments

@TylerRick
Copy link

Akismet has a test mode; we should be able to use it.

The reason for this is mentioned on https://github.com/joshfrench/rakismet:

Rakismet can be configued to tell Akismet that it should operate in test mode - so Akismet will not change its behavior based on any test API calls, meaning they will have no training effect. That means your tests can be somewhat repeatable in the sense that one test won't influence subsequent calls.

This sounds like a reasonable behavior too:

NOTE: When running in Rails, Rakismet will run in test mode when your Rails environment is test or development, unless explictly configured otherwise. Outside of Rails Rakismet defaults to test mode turned off.

@TylerRick
Copy link
Author

I found the test option that you can pass to spam?. Perhaps this should be documented in the Readme like it is in rakismet.

But I still think it would be nice to be able to configure Akismet test mode globally so you don't have to pass it with every call (but you could still override it on an individual call), just like how you shouldn't have to pass the api_key to every spam? call you make. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant