|
11 | 11 | from pathlib import Path |
12 | 12 | from typing import TYPE_CHECKING |
13 | 13 |
|
14 | | -import bokeh.models as bkmodels |
15 | 14 | import matplotlib.pyplot as plt |
16 | 15 | import numpy as np |
17 | 16 | import pytest |
18 | 17 | import requests |
19 | | -from bokeh.application import Application |
20 | | -from bokeh.application.handlers import FunctionHandler |
21 | | -from bokeh.events import ButtonClick, DoubleTap, MenuItemClick |
22 | 18 | from flask_cors import CORS |
23 | 19 | from matplotlib import colormaps |
24 | 20 | from PIL import Image |
25 | 21 | from scipy.ndimage import label |
26 | 22 |
|
| 23 | +import bokeh.models as bkmodels |
| 24 | +from bokeh.application import Application |
| 25 | +from bokeh.application.handlers import FunctionHandler |
| 26 | +from bokeh.events import ButtonClick, DoubleTap, MenuItemClick |
27 | 27 | from tiatoolbox.data import _fetch_remote_sample |
28 | 28 | from tiatoolbox.visualization.bokeh_app import main |
29 | 29 | from tiatoolbox.visualization.tileserver import TileServer |
@@ -285,7 +285,7 @@ def test_add_annotation_layer(doc: Document, data_path: pytest.TempPathFactory) |
285 | 285 | # trigger an event to select the geojson file |
286 | 286 | click = MenuItemClick(layer_drop, str(data_path["geojson_anns"])) |
287 | 287 | layer_drop._trigger_event(click) |
288 | | - assert main.UI["vstate"].types == ["annotation"] |
| 288 | + assert main.UI["vstate"].types == ["nucleus", "cell", "annotation"] |
289 | 289 |
|
290 | 290 | # test the name2type function. |
291 | 291 | assert main.name2type("annotation") == '"annotation"' |
|
0 commit comments