MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / test__import_class

Method test__import_class

tests/test_common.py:8–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class TestCommon:
8 def test__import_class(self):
9 doc_cls = _import_class("Document")
10 assert doc_cls is Document
11
12 def test__import_class_raise_if_not_known(self):
13 with pytest.raises(ValueError):

Callers

nothing calls this directly

Calls 1

_import_classFunction · 0.90

Tested by

no test coverage detected