pyodide/packages/xyzservices/test_xyzservices.py

16 lines
473 B
Python
Raw Normal View History

from pytest_pyodide.decorator import run_in_pyodide
@run_in_pyodide(packages=["xyzservices"])
def test_xyzservices(selenium):
"""
Check whether any errors occur by testing basic functionality.
Intended to function as a regression test.
Might fail if xyzservices is upgraded and the data
or API changes.
"""
import xyzservices.providers
# assert the module produces something for this
assert xyzservices.providers.CartoDB.Positron.url