Skip to content

Commit 16ef985

Browse files
committed
update test
1 parent 9714642 commit 16ef985

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_app_bokeh.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
from pathlib import Path
1212
from typing import TYPE_CHECKING
1313

14-
import bokeh.models as bkmodels
1514
import matplotlib.pyplot as plt
1615
import numpy as np
1716
import pytest
1817
import requests
19-
from bokeh.application import Application
20-
from bokeh.application.handlers import FunctionHandler
21-
from bokeh.events import ButtonClick, DoubleTap, MenuItemClick
2218
from flask_cors import CORS
2319
from matplotlib import colormaps
2420
from PIL import Image
2521
from scipy.ndimage import label
2622

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
2727
from tiatoolbox.data import _fetch_remote_sample
2828
from tiatoolbox.visualization.bokeh_app import main
2929
from tiatoolbox.visualization.tileserver import TileServer
@@ -285,7 +285,7 @@ def test_add_annotation_layer(doc: Document, data_path: pytest.TempPathFactory)
285285
# trigger an event to select the geojson file
286286
click = MenuItemClick(layer_drop, str(data_path["geojson_anns"]))
287287
layer_drop._trigger_event(click)
288-
assert main.UI["vstate"].types == ["annotation"]
288+
assert main.UI["vstate"].types == ["nucleus", "cell", "annotation"]
289289

290290
# test the name2type function.
291291
assert main.name2type("annotation") == '"annotation"'

0 commit comments

Comments
 (0)