test: RelatedDocument target is now Document
This commit is contained in:
parent
91f8ed7d24
commit
015d64bef3
|
@ -72,9 +72,7 @@ This test section has some text.
|
|||
|
||||
doc.set_state(State.objects.get(type_id="statement", slug="replaced"))
|
||||
doc2 = StatementFactory()
|
||||
doc2.relateddocument_set.create(
|
||||
relationship_id="replaces", target=doc.docalias.first()
|
||||
)
|
||||
doc2.relateddocument_set.create(relationship_id="replaces", target=doc)
|
||||
response = self.client.get(url)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
q = PyQuery(response.content)
|
||||
|
|
Loading…
Reference in a new issue