diff --git a/poetry.lock b/poetry.lock index b60e653..37e153d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -43,7 +43,7 @@ pytz = ">=2015.7" [[package]] name = "certifi" -version = "2022.12.7" +version = "2023.5.7" description = "Python package for providing Mozilla's CA Bundle." category = "dev" optional = false @@ -345,7 +345,7 @@ dev = ["pre-commit", "pytest-asyncio", "tox"] [[package]] name = "pytz" -version = "2022.7.1" +version = "2023.3" description = "World timezone definitions, modern and historical" category = "dev" optional = false @@ -542,7 +542,7 @@ python-versions = ">=3.6" [[package]] name = "urllib3" -version = "1.26.15" +version = "1.26.16" description = "HTTP library with thread-safe connection pooling, file post, and more." category = "dev" optional = false @@ -587,8 +587,8 @@ babel = [ {file = "Babel-2.11.0.tar.gz", hash = "sha256:5ef4b3226b0180dedded4229651c8b0e1a3a6a2837d45a073272f313e4cf97f6"}, ] certifi = [ - {file = "certifi-2022.12.7-py3-none-any.whl", hash = "sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"}, - {file = "certifi-2022.12.7.tar.gz", hash = "sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"}, + {file = "certifi-2023.5.7-py3-none-any.whl", hash = "sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716"}, + {file = "certifi-2023.5.7.tar.gz", hash = "sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7"}, ] charset-normalizer = [ {file = "charset-normalizer-2.0.12.tar.gz", hash = "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"}, @@ -865,8 +865,8 @@ pytest-mock = [ {file = "pytest_mock-3.6.1-py3-none-any.whl", hash = "sha256:30c2f2cc9759e76eee674b81ea28c9f0b94f8f0445a1b87762cadf774f0df7e3"}, ] pytz = [ - {file = "pytz-2022.7.1-py2.py3-none-any.whl", hash = "sha256:78f4f37d8198e0627c5f1143240bb0206b8691d8d7ac6d78fee88b78733f8c4a"}, - {file = "pytz-2022.7.1.tar.gz", hash = "sha256:01a0681c4b9684a28304615eba55d1ab31ae00bf68ec157ec3708a8182dbbcd0"}, + {file = "pytz-2023.3-py2.py3-none-any.whl", hash = "sha256:a151b3abb88eda1d4e34a9814df37de2a80e301e68ba0fd856fb9b46bfbbbffb"}, + {file = "pytz-2023.3.tar.gz", hash = "sha256:1d8ce29db189191fb55338ee6d0387d82ab59f3d00eac103412d64e0ebd0c588"}, ] requests = [ {file = "requests-2.27.1-py2.py3-none-any.whl", hash = "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d"}, @@ -928,8 +928,8 @@ typing-extensions = [ {file = "typing_extensions-4.1.1.tar.gz", hash = "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42"}, ] urllib3 = [ - {file = "urllib3-1.26.15-py2.py3-none-any.whl", hash = "sha256:aa751d169e23c7479ce47a0cb0da579e3ede798f994f5816a74e4f4500dcea42"}, - {file = "urllib3-1.26.15.tar.gz", hash = "sha256:8a388717b9476f934a21484e8c8e61875ab60644d29b9b39e11e4b9dc1c6b305"}, + {file = "urllib3-1.26.16-py2.py3-none-any.whl", hash = "sha256:8d36afa7616d8ab714608411b4a3b13e58f463aee519024578e062e141dce20f"}, + {file = "urllib3-1.26.16.tar.gz", hash = "sha256:8f135f6502756bde6b2a9b28989df5fbe87c9970cecaa69041edcce7f0589b14"}, ] zipp = [ {file = "zipp-3.6.0-py3-none-any.whl", hash = "sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc"}, diff --git a/tests/test_pickling.py b/tests/test_pickling.py index b884b92..e5528ad 100644 --- a/tests/test_pickling.py +++ b/tests/test_pickling.py @@ -5,8 +5,8 @@ """ import dill -from flightgear_python.fg_if import FDMConnection, CtrlsConnection -from testing_common import supported_fdm_versions, supported_ctrls_versions +from flightgear_python.fg_if import FDMConnection, CtrlsConnection, GuiConnection +from testing_common import supported_fdm_versions, supported_ctrls_versions, supported_gui_versions import pytest from _pytest.outcomes import Failed @@ -28,3 +28,12 @@ def test_pickle_ctrls(ctrls_version): dill.dumps(ctrls_c.fg_net_struct) except dill.PicklingError as e: raise Failed(f'Failed to pickle Ctrls fg_net_struct: {e}') from None + + +@pytest.mark.parametrize('gui_version', supported_gui_versions) +def test_pickle_gui(gui_version): + gui_c = GuiConnection(gui_version) + try: + dill.dumps(gui_c.fg_net_struct) + except dill.PicklingError as e: + raise Failed(f'Failed to pickle Gui fg_net_struct: {e}') from None diff --git a/tests/testing_common.py b/tests/testing_common.py index eb94c75..e5fc9b6 100644 --- a/tests/testing_common.py +++ b/tests/testing_common.py @@ -4,6 +4,7 @@ supported_fdm_versions = [24, 25, ] supported_ctrls_versions = [27, ] +supported_gui_versions = [8, ] project_dir = os.path.abspath(os.path.dirname(__file__))