From 4fda2666370b4c4eb92c665d137efbdccff5416e Mon Sep 17 00:00:00 2001 From: Derek Homeier Date: Tue, 1 Oct 2024 16:28:49 +0200 Subject: [PATCH] Add URLs for nightly wheels, fix expected y_lim for glue-core >= 1.21.2 --- glue_qt/viewers/profile/tests/test_data_viewer.py | 6 ++++-- tox.ini | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/glue_qt/viewers/profile/tests/test_data_viewer.py b/glue_qt/viewers/profile/tests/test_data_viewer.py index 2a5b09f6..39662f9c 100644 --- a/glue_qt/viewers/profile/tests/test_data_viewer.py +++ b/glue_qt/viewers/profile/tests/test_data_viewer.py @@ -498,8 +498,10 @@ def test_unit_conversion_limits(): assert viewer.state.x_min == 3.0 assert viewer.state.x_max == 3.0 - assert viewer.state.y_min == 0. - assert viewer.state.y_max == 1. + + # Limits for constant data == 3.0; this was broken up to glue-core 1.21.1 (glue-viz/glue#2513) + assert viewer.state.y_min in (2.7, 0.0) + assert viewer.state.y_max in (3.3, 1.0) # Explicitly set unit on y axis to enable unit conversion viewer.state.y_display_unit = 'Jy' diff --git a/tox.ini b/tox.ini index 8e276758..38db8122 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,7 @@ passenv = # Set to 1 to get more debug information from PyQt setenv = test: QT_DEBUG_PLUGINS = 0 + dev: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple whitelist_externals = find rm