1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
import pytest
from qtpy import QT6
from qtpy.tests.utils import using_conda
@pytest.mark.skipif(
QT6 and using_conda(),
reason="QPositioning bindings not included in Conda qt-main >= 6.4.3.",
)
def test_qtpositioning():
"""Test the qtpy.QtPositioning namespace"""
from qtpy import QtPositioning
assert QtPositioning.QGeoAddress is not None
assert QtPositioning.QGeoAreaMonitorInfo is not None
assert QtPositioning.QGeoAreaMonitorSource is not None
assert QtPositioning.QGeoCircle is not None
assert QtPositioning.QGeoCoordinate is not None
assert QtPositioning.QGeoLocation is not None
assert QtPositioning.QGeoPath is not None
# CI for 3.7 uses Qt 5.9
# assert QtPositioning.QGeoPolygon is not None # New in Qt 5.10
assert QtPositioning.QGeoPositionInfo is not None
assert QtPositioning.QGeoPositionInfoSource is not None
# QGeoPositionInfoSourceFactory is not available in PyQt
# assert QtPositioning.QGeoPositionInfoSourceFactory is not None # New in Qt 5.2
# assert QtPositioning.QGeoPositionInfoSourceFactoryV2 is not None # New in Qt 5.14
assert QtPositioning.QGeoRectangle is not None
assert QtPositioning.QGeoSatelliteInfo is not None
assert QtPositioning.QGeoSatelliteInfoSource is not None
assert QtPositioning.QGeoShape is not None
assert QtPositioning.QNmeaPositionInfoSource is not None
|