Skip to content

Commit 5142300

Browse files
committed
make green tick✅✅ (python exception message 3.12+ and removing unused imports)
Signed-off-by: leohoare <[email protected]>
1 parent eb59786 commit 5142300

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/provider/test_provider_compatibility.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import asyncio
21
from typing import Optional, Union
32

43
import pytest
54

6-
from openfeature.api import OpenFeatureClient, get_client, set_provider
5+
from openfeature.api import get_client, set_provider
76
from openfeature.evaluation_context import EvaluationContext
87
from openfeature.flag_evaluation import FlagResolutionDetails
98
from openfeature.provider import AbstractProvider, Metadata
@@ -127,9 +126,9 @@ async def resolve_boolean_details_async(
127126

128127
# Then
129128
# assert
130-
assert str(exception.value).startswith(
131-
"Can't instantiate abstract class AsyncProvider with abstract methods resolve_boolean_details"
132-
)
129+
exception_message = str(exception.value)
130+
assert exception_message.startswith("Can't instantiate abstract class AsyncProvider")
131+
assert exception_message.__contains__("resolve_boolean_details")
133132

134133

135134
@pytest.mark.asyncio

0 commit comments

Comments
 (0)