Commit f8282a9c authored by Romain Casati's avatar Romain Casati

Adding tests for Basthon's modules.

parent cf101762
from pathlib import Path
import re
_test_data = Path(__file__).parent / "data"
def test_all(selenium):
# ensure all basthon modules are tested
tested = set(g[len('test_'):] for g in globals()
if g.startswith('test_') and g != 'test_all')
result = selenium.run_basthon("""
from basthon import packages
set(packages._internal_pkgs.keys())""")['result']
internal = eval(result['result']['text/plain'])
assert tested == internal
def test_IPython(selenium):
pass
def test_requests(selenium):
pass
def test_proj4py(selenium):
pass
def test_turtle(selenium):
# already tested in test_hacked_modules
assert True
def test_folium(selenium):
# already tested in test_hacked_modules
assert True
def test_graphviz(selenium):
pass
def test_p5(selenium):
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment