Test load through schema module#

Also see the corresponding FAQ notebook in lamindb: import-schema.

If you try to access an attribute (other than model), you’ll load the instance in the same way as calling import lamindb.

!lamin init --storage test-implicit-load --schema bionty
import lamindb_setup

assert not lamindb_setup.dev.django.IS_SETUP
import lnschema_bionty as lb
assert not lamindb_setup.dev.django.IS_SETUP
lb.Gene
assert lamindb_setup.dev.django.IS_SETUP
!lamin delete --force test-implicit-load