You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'd like to be able to access the package modules as symbols after importing the package's module (__init__.py).
I.e. given the kcidb package contains the db module, this should work:
importkcidbprint(kcidb.db)
Most of the code is already built that way. However, we don't have any tests verifying that.
Add a test to test_kcidb.py which starts with the kcidb package, lists modules under it (e.g. using pkgutil, like in kcidb.monitor.subscriptions), imports the package and verifies that each listed module is available as a symbol with type <class 'module'> inside it, then continues to all sub-packages recursively, until everything is verified.
The text was updated successfully, but these errors were encountered:
We'd like to be able to access the package modules as symbols after importing the package's module (
__init__.py
).I.e. given the
kcidb
package contains thedb
module, this should work:Most of the code is already built that way. However, we don't have any tests verifying that.
Add a test to
test_kcidb.py
which starts with thekcidb
package, lists modules under it (e.g. usingpkgutil
, like inkcidb.monitor.subscriptions
), imports the package and verifies that each listed module is available as a symbol with type<class 'module'>
inside it, then continues to all sub-packages recursively, until everything is verified.The text was updated successfully, but these errors were encountered: