コード例 #1
0
 def test_convert_ico_path_bad(self) -> None:
     with pytest.raises(ValueError):
         bs.convert_ico_path("junk")
コード例 #2
0
 def test_convert_ico_path_default(self) -> None:
     assert bs.convert_ico_path("default").endswith("bokeh.ico")
     assert bs.convert_ico_path("default-dev").endswith("bokeh-dev.ico")
コード例 #3
0
 def test_convert_ico_path_good(self) -> None:
     assert bs.convert_ico_path("/foo/bar.ico") == "/foo/bar.ico"
コード例 #4
0
 def test_convert_ico_path_none(self, value) -> None:
     assert bs.convert_ico_path(value) == "none"