2020-05-08 23:28:44 +00:00
|
|
|
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
|
2020-05-08 23:28:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_parse_package_subset():
|
|
|
|
assert _parse_package_subset("") is None
|
|
|
|
# micropip is always included
|
|
|
|
assert _parse_package_subset("numpy,pandas") == [
|
2020-05-09 00:06:22 +00:00
|
|
|
'micropip', 'distlib', 'numpy', 'pandas'
|
2020-05-08 23:28:44 +00:00
|
|
|
]
|