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
I was wondering why do we have two test modules: test and tests. Running pytest . seems to be working perfectly well as it will get all the files in both test and tests directory and also the subdirectories with the same name. I ran the tests locally with pytest . and all tests are running and passing.
The failing tests are occurring for the doctest. Its failing right at the collection part as its not finding some imports. The list of errors:
ERROR infogami/core/dbupgrade.py - ImportError: cannot import name 'tdb' from 'infogami' (/Users/dhruvmanilawala/projects/infogami/infogami/__init__.py)
ERROR infogami/infobase/bulkupload.py - ImportError: cannot import name 'TYPES' from 'infogami.infobase.infobase' (/Users/dhruvmanilawala/projects/infogami/infogami/infobase/infobase.py)
ERROR infogami/plugins/i18n/code.py - web.webapi.HTTPError: 500 Internal Server Error
ERROR infogami/plugins/links/db.py - ImportError: cannot import name 'tdb' from 'infogami' (/Users/dhruvmanilawala/projects/infogami/infogami/__init__.py)
ERROR infogami/plugins/pages/code.py - ImportError: cannot import name 'tdb' from 'infogami' (/Users/dhruvmanilawala/projects/infogami/infogami/__init__.py)
ERROR infogami/plugins/review/code.py - ImportError: cannot import name 'pickdb' from 'infogami.utils.delegate' (/Users/dhruvmanilawala/projects/infogami/infogami/utils/delegate.py)
ERROR infogami/plugins/review/db.py - ImportError: cannot import name 'pickdb' from 'infogami.utils.delegate' (/Users/dhruvmanilawala/projects/infogami/infogami/utils/delegate.py)
ERROR infogami/plugins/wikitemplates/code.py - web.webapi.HTTPError: 500 Internal Server Error
ERROR migration/migrate-0.4-0.5.py - ModuleNotFoundError: No module named 'migrate-0'
It seems that tdb module was removed in the commit 1a41e7d and also the module dbupgrade is not used anywhere in the codebase.
Also, the function pickdb got removed in this commit 1144b7b and the constant TYPES got removed in 010c3e2
migration module should probably be ignored while running pytest.
It seems that infogami/plugins/i18n/code.py and infogami/plugins/wikitemplates/code.py will be calling functions on the global scope to setup some things.
The text was updated successfully, but these errors were encountered:
Continuing from #118
The failing tests are occurring for the
doctest
. Its failing right at the collection part as its not finding some imports. The list of errors:tdb
module was removed in the commit 1a41e7d and also the moduledbupgrade
is not used anywhere in the codebase.pickdb
got removed in this commit 1144b7b and the constantTYPES
got removed in 010c3e2migration
module should probably be ignored while runningpytest
.infogami/plugins/i18n/code.py
andinfogami/plugins/wikitemplates/code.py
will be calling functions on the global scope to setup some things.The text was updated successfully, but these errors were encountered: