Merge pull request #6083 from jennifer-richards/fix-statement-test

test: RelatedDocument target is now Document
This commit is contained in:
Jennifer Richards 2023-08-08 13:33:25 -03:00 committed by GitHub
commit a0f6201fc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)