Skip to content

Commit

Permalink
Corrige 'test_validation_history()'
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Sep 15, 2024
1 parent 4a7e494 commit 9ce6f8c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions zds/tutorialv2/tests/tests_views/tests_published.py
Original file line number Diff line number Diff line change
Expand Up @@ -1408,17 +1408,8 @@ def test_validation_history(self):
published = PublishedContentFactory(author_list=[self.user_author])
self.client.force_login(self.user_author)
result = self.client.post(
reverse("content:edit", args=[published.pk, published.slug]),
{
"title": published.title,
"description": published.description,
"introduction": "crappy crap",
"conclusion": "crappy crap",
"type": "TUTORIAL",
"licence": self.licence.pk,
"subcategory": self.subcategory.pk,
"last_hash": published.load_version().compute_hash(), # good hash
},
reverse("content:edit-title", args=[published.pk]),
{"title": published.title + "2"},
follow=True,
)
self.assertEqual(result.status_code, 200)
Expand Down

0 comments on commit 9ce6f8c

Please sign in to comment.