palimpseste-max / tests /test_package_alias.py
thefinalboss's picture
v0.2.0 canonical palimpseste package + LFS-safe mmap loader
ab322ec verified
Raw History Blame Contribute Delete
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