Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Kernel
Commits
f8282a9c
Commit
f8282a9c
authored
Jan 31, 2021
by
Romain Casati
Browse files
Adding tests for Basthon's modules.
parent
cf101762
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_basthon_modules.py
0 → 100644
View file @
f8282a9c
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment