diff --git a/docs/modules/main/info.md b/docs/modules/main/info.md index be2cd7ae..6cc8ccdf 100644 --- a/docs/modules/main/info.md +++ b/docs/modules/main/info.md @@ -46,12 +46,10 @@ pip install python-rucaptcha ## How to test? 1. You need set ``RUCAPTCHA_KEY`` in your environment(get this value from you account). -2. Run command ``make tests``, from root directory. +2. You need set ``DEATHBYCAPTCHA_KEY`` in your environment(get this value from you account). +3. Run command ``make tests``, from root directory. ### Changelog -- v.5.1 - Check [releases page](https://github.com/AndreiDrang/python-rucaptcha/releases). -- v.5.0 - Added AmazonWAF captcha method. -- v.4.2 - Added [Yandex Smart Captcha](https://rucaptcha.com/api-rucaptcha#yandex). -- v.4.0 - Rework classes and methods. Adding `TikTok` captcha. Adding inheritance and serializers. The `Callback server` is deprecated. +Check [releases page](https://github.com/AndreiDrang/python-rucaptcha/releases). diff --git a/tests/conftest.py b/tests/conftest.py index ccc5a55f..8d0559c7 100755 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,6 +2,7 @@ import time import random import string +import logging import pytest @@ -38,4 +39,6 @@ def get_random_string(self, length: int) -> str: class DeathByTest(BaseTest): - RUCAPTCHA_KEY = os.environ["DEATHBYCAPTCHA_KEY"] + RUCAPTCHA_KEY = os.getenv("DEATHBYCAPTCHA_KEY") + if not RUCAPTCHA_KEY: + logging.warning("U do not set `DEATHBYCAPTCHA_KEY` ENV")