File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- import asyncio
2
1
from typing import Optional , Union
3
2
4
3
import pytest
5
4
6
- from openfeature .api import OpenFeatureClient , get_client , set_provider
5
+ from openfeature .api import get_client , set_provider
7
6
from openfeature .evaluation_context import EvaluationContext
8
7
from openfeature .flag_evaluation import FlagResolutionDetails
9
8
from openfeature .provider import AbstractProvider , Metadata
@@ -127,9 +126,9 @@ async def resolve_boolean_details_async(
127
126
128
127
# Then
129
128
# 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" )
133
132
134
133
135
134
@pytest .mark .asyncio
You can’t perform that action at this time.
0 commit comments