MCPcopy
hub / github.com/django/django / test_direct_hidden_fk

Method test_direct_hidden_fk

tests/migrations/test_state.py:1994–2000  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1992 self.assertRelated(B, [A])
1993
1994 def test_direct_hidden_fk(self):
1995 A = self.create_model(
1996 "A", foreign_keys=[models.ForeignKey("B", models.CASCADE, related_name="+")]
1997 )
1998 B = self.create_model("B")
1999 self.assertRelated(A, [B])
2000 self.assertRelated(B, [A])
2001
2002 def test_fk_through_proxy(self):
2003 A = self.create_model("A")

Callers

nothing calls this directly

Calls 2

create_modelMethod · 0.95
assertRelatedMethod · 0.95

Tested by

no test coverage detected