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 wetlab,bionty
import lamindb_setup

assert not lamindb_setup.core.django.IS_SETUP
import wetlab as lb
assert not lamindb_setup.core.django.IS_SETUP
lb.Experiment
assert lamindb_setup.core.django.IS_SETUP
!lamin delete --force test-implicit-load