From 37a0057627b8afe6fc5b5e2752a01028fdfb0be5 Mon Sep 17 00:00:00 2001 From: alexandre menezes Date: Mon, 18 Jul 2022 16:04:08 -0300 Subject: [PATCH] added sleep time between test_language_is_invalid calls --- tests/test_validators.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_validators.py b/tests/test_validators.py index 50eee94..1fb0817 100644 --- a/tests/test_validators.py +++ b/tests/test_validators.py @@ -1,3 +1,5 @@ +import asyncio + import pytest from aiopytesseract import constants, exceptions, validators @@ -47,7 +49,10 @@ async def test_language_is_valid(lang): assert resp is None +@pytest.mark.asyncio @pytest.mark.parametrize("lang", ["por eng", "por:eng", "por-eng", "por+zuul"]) async def test_language_is_invalid(lang): + await asyncio.sleep(0.5) with pytest.raises(exceptions.LanguageInvalidException): await validators.language_is_valid(lang) +