Download tests/test_package_alias.py from thefinalboss/palimpseste-max: direct link, hf CLI and curl.
- Browser
- Download file 616 Bytes
-
https://huggingface.co/thefinalboss/palimpseste-max/resolve/main/tests/test_package_alias.py
- Command line
-
hf download hf://thefinalboss/palimpseste-max/tests/test_package_alias.py
-
curl -L -o test_package_alias.py https://huggingface.co/thefinalboss/palimpseste-max/resolve/main/tests/test_package_alias.py
616 Bytes
| """Canonical package name is palimpseste; palimseste stays as alias.""" | |
| from __future__ import annotations | |
| def test_both_names_import_same_hv(): | |
| import palimseste | |
| import palimpseste | |
| from palimseste.hv import bind as bind_old | |
| from palimpseste.hv import bind as bind_new | |
| assert bind_old is bind_new | |
| assert palimpseste.HV is palimseste.HV | |
| assert palimpseste.__version__ == palimseste.__version__ | |
| def test_submodule_alias(): | |
| import palimpseste.capacity as cap_new | |
| import palimseste.capacity as cap_old | |
| assert cap_new.kstar_exact(20_000) == cap_old.kstar_exact(20_000) == 400 | |