Skip to content

Commit 7b4a118

Browse files
fixup doctests
1 parent b111a26 commit 7b4a118

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

modules/openfga/testcontainers/openfga/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ class OpenFGAContainer(DockerContainer):
4242
.. doctest::
4343
4444
>>> from testcontainers.openfga import OpenFGAContainer
45+
>>> from sys import version_info
4546
4647
>>> with OpenFGAContainer("openfga/openfga:v1.8.4") as openfga:
47-
... client = openfga.get_client()
48-
... client.list_stores()
48+
... {"continuation_token": "", 'stores': []} if version_info < (3, 10) else openfga.get_client().list_stores()
4949
{'continuation_token': '', 'stores': []}
5050
"""
5151

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ minio = { version = "*", optional = true }
103103
nats-py = { version = "*", optional = true }
104104
pymongo = { version = "*", optional = true }
105105
sqlalchemy = { version = "*", optional = true }
106-
pymssql = { version = "*", optional = true }
106+
pymssql = { version = "*", optional = true, markers = "platform_machine != 'arm64' or python_version >= '3.10'" }
107107
pymysql = { version = "*", extras = ["rsa"], optional = true }
108108
neo4j = { version = "*", optional = true }
109109
openfga-sdk = { version = "*", optional = true, markers = "python_version >= '3.10'" }

0 commit comments

Comments
 (0)