forked from pool/python-panel
- Use -s in pytest call - Update to version 0.12.1 * Big Changelog since 0.11 https://github.com/holoviz/panel/blob/master/CHANGELOG.md * New Features in 0.12: Add ReactiveHTML Add Terminal Widget based on xterm.js (#2090) Adding a DatetimePicker widget (#2107, #2135) Add editable sliders (#2111, #2133, #2208) Add FlexBox layout (#2233, #2511) Add ability to configure global template (#2271) Add GridStack layout (#2375) Add PDF pane (#2444) Add /panel-preview endpoint for Jupyter server extension (#2341, #2361) Add Tqdm Indicator (#2079) * Deprecations: Remove add_periodic_callback method (#2439) Remove deprecated panel.callbacks modules Remove deprecated Ace pane and Audio Widget (#2427) Remove Progress widget docs (#2451) Tabulator no longer loaded by default, must be initialized with pn.extension('tabulator') - Add missing test data and patch * mp3.mp3 * mp4.mp4 * panel-pr2636-fixtests.patch * gh#holoviz/panel#2636 OBS-URL: https://build.opensuse.org/request/show/914402 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-panel?expand=0&rev=12
63 lines
2.1 KiB
Diff
63 lines
2.1 KiB
Diff
From 3c7104e5420e3bf5a5665ae84c3c731e7cf3a10b Mon Sep 17 00:00:00 2001
|
|
From: Philipp Rudiger <prudiger@anaconda.com>
|
|
Date: Mon, 16 Aug 2021 15:05:10 +0200
|
|
Subject: [PATCH 1/2] Ensure tests pass in packaged version
|
|
|
|
---
|
|
MANIFEST.in | 2 ++
|
|
panel/tests/pane/test_base.py | 5 ++++-
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/MANIFEST.in b/MANIFEST.in
|
|
index b0d5d242d7..2b323f506b 100644
|
|
--- a/MANIFEST.in
|
|
+++ b/MANIFEST.in
|
|
@@ -11,6 +11,8 @@ include panel/models/vtk/*.ts
|
|
include panel/_templates/*.js
|
|
include panel/_templates/*.html
|
|
include panel/tests/test_data/*.png
|
|
+include panel/tests/pane/assets/*.mp3
|
|
+include panel/tests/pane/assets/*.mp4
|
|
recursive-include panel/template *.html
|
|
recursive-include panel/template *.css
|
|
recursive-include panel/template *.js
|
|
diff --git a/panel/tests/pane/test_base.py b/panel/tests/pane/test_base.py
|
|
index 32f9f9dfc2..1ffc078014 100644
|
|
--- a/panel/tests/pane/test_base.py
|
|
+++ b/panel/tests/pane/test_base.py
|
|
@@ -33,7 +33,10 @@ def test_pane_layout_properties(pane, document, comm):
|
|
|
|
@pytest.mark.parametrize('pane', all_panes+[Bokeh])
|
|
def test_pane_linkable_params(pane):
|
|
- p = pane()
|
|
+ try:
|
|
+ p = pane()
|
|
+ except ImportError:
|
|
+ pytest.skip("Dependent library could not be imported.")
|
|
controls = p.controls(jslink=True)
|
|
layout = Row(p, controls)
|
|
|
|
|
|
From 8ad7606eda22875cc7e24b855273c25ccec5e147 Mon Sep 17 00:00:00 2001
|
|
From: Philipp Rudiger <prudiger@anaconda.com>
|
|
Date: Mon, 16 Aug 2021 15:49:42 +0200
|
|
Subject: [PATCH 2/2] Update plotly test
|
|
|
|
---
|
|
panel/tests/pane/test_plotly.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/panel/tests/pane/test_plotly.py b/panel/tests/pane/test_plotly.py
|
|
index a71b75009e..5c56eeecfa 100644
|
|
--- a/panel/tests/pane/test_plotly.py
|
|
+++ b/panel/tests/pane/test_plotly.py
|
|
@@ -92,7 +92,7 @@ def test_plotly_pane_datetime_array_transform(document, comm):
|
|
pane = Plotly(fig)
|
|
|
|
model = pane.get_root(document, comm)
|
|
- assert all(isinstance(v, str) for v in model.data[0]['x'])
|
|
+ assert model.data_sources[0].data['x'][0].dtype.kind == 'U'
|
|
|
|
|
|
@plotly_available
|