simplify post urls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user