Skip to content

Commit

Permalink
added sleep time between test_language_is_invalid calls
Browse files Browse the repository at this point in the history
  • Loading branch information
amenezes committed Jul 18, 2022
1 parent 1542971 commit 37a0057
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_validators.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import asyncio

import pytest

from aiopytesseract import constants, exceptions, validators
Expand Down Expand Up @@ -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)

0 comments on commit 37a0057

Please sign in to comment.