From 7e33978d4d83908a66abb89bd94899e9eff21dd7 Mon Sep 17 00:00:00 2001 From: Pierrick Rambaud Date: Sun, 28 Jan 2024 17:20:15 +0100 Subject: [PATCH] fix: deprecate vizualization methods --- tests/test_deprecated.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/test_deprecated.py diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py new file mode 100644 index 00000000..6dd6c276 --- /dev/null +++ b/tests/test_deprecated.py @@ -0,0 +1,17 @@ +"""Test all the deprecated methods that have not been kept in the new implementation""" + +import pytest + +import geetools + +class TestVizualisation: + """Test methods from the deprecated_visualization module""" + + def test_stretch_std(self): + with pytest.raises(NotImplementedError): + geetools.visualization.stretch_std(None, None) + + def test_stretch_percentile(self): + with pytest.raises(NotImplementedError): + geetools.visualization.stretch_percentile(None, None) +