pyodide/test/pyodide_build/test_common.py

15 lines
374 B
Python
Raw Normal View History

import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parents[2]))
2020-05-09 00:06:22 +00:00
from pyodide_build.common import _parse_package_subset # noqa
def test_parse_package_subset():
2020-05-09 10:32:10 +00:00
assert _parse_package_subset(None) is None
# micropip is always included
assert _parse_package_subset("numpy,pandas") == [
2020-05-09 00:06:22 +00:00
'micropip', 'distlib', 'numpy', 'pandas'
]