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

Method test_queryset_delete_signals

tests/test_signals.py:386–395  ·  view source on GitHub ↗

Queryset delete should throw some signals.

(self)

Source from the content-addressed store, hash-verified

384 ]
385
386 def test_queryset_delete_signals(self):
387 """Queryset delete should throw some signals."""
388
389 self.Another(name="Bill Shakespeare").save()
390 assert self.get_signal_output(self.Another.objects.delete) == [
391 "pre_delete signal, Bill Shakespeare",
392 {},
393 "post_delete signal, Bill Shakespeare",
394 {},
395 ]
396
397 def test_signals_with_explicit_doc_ids(self):
398 """Model saves must have a created flag the first time."""

Callers

nothing calls this directly

Calls 2

get_signal_outputMethod · 0.95
saveMethod · 0.45

Tested by

no test coverage detected