From dfab0abbee19f6ff05135c9b37bbfdae6caec3c5 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 5 Apr 2023 17:38:10 +0300 Subject: [PATCH 1/2] Update info.md --- docs/modules/main/info.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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). From 2564d9fa9d3fec5c58be3839dcdcad93e059cff5 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 5 Apr 2023 17:38:18 +0300 Subject: [PATCH 2/2] Update conftest.py --- tests/conftest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")