Skip to content

Commit

Permalink
Corrige 'test_unpublish_with_title_change()'
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Sep 15, 2024
1 parent 2615f8d commit 4a7e494
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions zds/tutorialv2/tests/tests_views/tests_published.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,18 +1332,8 @@ def test_unpublish_with_title_change(self):
registered_validation.save()
self.client.force_login(self.user_staff)
self.client.post(
reverse("content:edit", args=[article.pk, article.slug]),
{
"title": "new title so that everything explode",
"description": article.description,
"introduction": article.load_version().get_introduction(),
"conclusion": article.load_version().get_conclusion(),
"type": "ARTICLE",
"licence": article.licence.pk,
"subcategory": self.subcategory.pk,
"last_hash": article.load_version(article.sha_draft).compute_hash(),
"image": (settings.BASE_DIR / "fixtures" / "logo.png").open("rb"),
},
reverse("content:edit-title", args=[article.pk]),
{"title": "new title so that everything explode"},
follow=False,
)
public_count = PublishedContent.objects.count()
Expand Down

0 comments on commit 4a7e494

Please sign in to comment.