diff --git a/tests/test_api_async.py b/tests/test_api_async.py index c227f01..03d9a8b 100644 --- a/tests/test_api_async.py +++ b/tests/test_api_async.py @@ -79,8 +79,8 @@ async def test_multi_call(self, async_populated_api): assert len(results[0]) == 1 assert results[0][0]["name"] == USERNAME assert results[1] is not None - version_split = results[1].split(".") - assert len(version_split) == 4 + version_len = len(results[1].split(".")) + assert 3 <= version_len <= 4 @pytest.mark.asyncio async def test_pythonic_parameters(self, async_populated_api): diff --git a/tests/test_api_call.py b/tests/test_api_call.py index 2f753f0..13f840d 100644 --- a/tests/test_api_call.py +++ b/tests/test_api_call.py @@ -80,8 +80,8 @@ def test_multi_call(self, populated_api): assert len(results[0]) == 1 assert results[0][0]["name"] == USERNAME assert results[1] is not None - version_split = results[1].split(".") - assert len(version_split) == 4 + version_len = len(results[1].split(".")) + assert 3 <= version_len <= 4 def test_pythonic_parameters(self, populated_api): users = populated_api.get("User")