MCPcopy Create free account
hub / github.com/MongoEngine/mongoengine / load_existing_author

Method load_existing_author

tests/test_signals.py:264–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 self.Author.objects.insert([a1], load_bulk=False)
263
264 def load_existing_author():
265 a = self.Author(name="Bill Shakespeare")
266 a.save()
267 self.get_signal_output(lambda: None) # eliminate signal output
268 _ = self.Author.objects(name="Bill Shakespeare")[0]
269
270 assert self.get_signal_output(create_author) == [
271 "pre_init signal, Author",

Callers

nothing calls this directly

Calls 3

get_signal_outputMethod · 0.95
saveMethod · 0.45
objectsMethod · 0.45

Tested by

no test coverage detected