From 63437043fc130ac31ba6a4eb45e207ead9eb10c1 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Fri, 19 Jan 2024 12:54:46 -0500 Subject: [PATCH] Revert "jdaviz version condition in test coverage" This reverts commit 6a0086e8d6ce058097f946d44332d47ee9c36d46. --- lcviz/tests/test_plugin_ephemeris.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/lcviz/tests/test_plugin_ephemeris.py b/lcviz/tests/test_plugin_ephemeris.py index dea97b68..aa0cecb6 100644 --- a/lcviz/tests/test_plugin_ephemeris.py +++ b/lcviz/tests/test_plugin_ephemeris.py @@ -1,8 +1,4 @@ import pytest -from packaging.version import Version - -import jdaviz -JDAVIZ_LT_3_9_0 = Version(jdaviz.__version__) < Version('3.9.0') def test_docs_snippets(helper, light_curve_like_kepler_quarter): @@ -49,13 +45,12 @@ def test_plugin_ephemeris(helper, light_curve_like_kepler_quarter): assert len(ephem.ephemerides) == 2 assert 'custom component' in ephem.ephemerides - if not JDAVIZ_LT_3_9_0: - with pytest.raises(ValueError): - # brackets interfere with cloned viewer label logic - ephem.rename_component('custom component', 'custom component[blah]') - with pytest.raises(ValueError): - # colons interfere with viewer ephemeris logic - ephem.rename_component('custom component', 'custom component:blah') + with pytest.raises(ValueError): + # brackets interfere with cloned viewer label logic + ephem.rename_component('custom component', 'custom component[blah]') + with pytest.raises(ValueError): + # colons interfere with viewer ephemeris logic + ephem.rename_component('custom component', 'custom component:blah') ephem.rename_component('custom component', 'renamed custom component') assert len(ephem.ephemerides) == 2