Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
|
32fdec1781 | |
|
9d0cbe8d4a |
|
@ -21,7 +21,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
|
|
|
@ -16,7 +16,7 @@ repos:
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.17.0
|
rev: v1.17.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
files: openfeature
|
files: openfeature
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import asyncio
|
import inspect
|
||||||
import time
|
import time
|
||||||
import uuid
|
import uuid
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
|
@ -68,7 +68,7 @@ async def test_should_get_flag_value_based_on_method_type(
|
||||||
# Given
|
# Given
|
||||||
# When
|
# When
|
||||||
method = getattr(no_op_provider_client, get_method)
|
method = getattr(no_op_provider_client, get_method)
|
||||||
if asyncio.iscoroutinefunction(method):
|
if inspect.iscoroutinefunction(method):
|
||||||
flag = await method(flag_key="Key", default_value=default_value)
|
flag = await method(flag_key="Key", default_value=default_value)
|
||||||
else:
|
else:
|
||||||
flag = method(flag_key="Key", default_value=default_value)
|
flag = method(flag_key="Key", default_value=default_value)
|
||||||
|
@ -126,7 +126,7 @@ async def test_should_get_flag_detail_based_on_method_type(
|
||||||
# Given
|
# Given
|
||||||
# When
|
# When
|
||||||
method = getattr(no_op_provider_client, get_method)
|
method = getattr(no_op_provider_client, get_method)
|
||||||
if asyncio.iscoroutinefunction(method):
|
if inspect.iscoroutinefunction(method):
|
||||||
flag = await method(flag_key="Key", default_value=default_value)
|
flag = await method(flag_key="Key", default_value=default_value)
|
||||||
else:
|
else:
|
||||||
flag = method(flag_key="Key", default_value=default_value)
|
flag = method(flag_key="Key", default_value=default_value)
|
||||||
|
|
Loading…
Reference in New Issue