Skip to content

Commit

Permalink
make green tick✅✅ (python exception message 3.12+ and removing unused…
Browse files Browse the repository at this point in the history
… imports)

Signed-off-by: leohoare <[email protected]>
  • Loading branch information
leohoare committed Jan 23, 2025
1 parent 2fa599c commit 5d34cd8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/provider/test_provider_compatibility.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import asyncio
from typing import Optional, Union

import pytest

from openfeature.api import OpenFeatureClient, get_client, set_provider
from openfeature.api import get_client, set_provider
from openfeature.evaluation_context import EvaluationContext
from openfeature.flag_evaluation import FlagResolutionDetails
from openfeature.provider import AbstractProvider, Metadata
Expand Down Expand Up @@ -127,9 +126,9 @@ async def resolve_boolean_details_async(

# Then
# assert
assert str(exception.value).startswith(
"Can't instantiate abstract class AsyncProvider with abstract methods resolve_boolean_details"
)
exception_message = str(exception.value)
assert exception_message.startswith("Can't instantiate abstract class AsyncProvider")
assert exception_message.__contains__("resolve_boolean_details")


@pytest.mark.asyncio
Expand Down

0 comments on commit 5d34cd8

Please sign in to comment.