simplify post urls

This commit is contained in:
2022-04-09 10:14:15 +00:00
parent 531b69663c
commit 68ce65034b
12 changed files with 23 additions and 50 deletions

View File

@@ -54,7 +54,7 @@ class TestPostModel:
assert "asdf" in post_saved.slug
def test_url_attribute(self, post_saved):
assert reverse("posts.show", kwargs={"id": post_saved.slug}) == post_saved.url
assert reverse("show", kwargs={"id": post_saved.slug}) == post_saved.url
def test_default_hidden(self, post_saved):
assert post_saved.is_hidden==False