MCPcopy
hub / github.com/django/django / import_module

Method import_module

tests/serializers/test_yaml.py:37–41  ·  view source on GitHub ↗
(self, module_path)

Source from the content-addressed store, hash-verified

35 self._import_module = importlib.import_module
36
37 def import_module(self, module_path):
38 if module_path == serializers.BUILTIN_SERIALIZERS["yaml"]:
39 raise ImportError(YAML_IMPORT_ERROR_MESSAGE)
40
41 return self._import_module(module_path)
42
43
44class NoYamlSerializerTestCase(SimpleTestCase):

Callers 6

_load_libraryMethod · 0.80
__init__Method · 0.80
register_serializerFunction · 0.80
ask_initialMethod · 0.80
test_lazyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected