Skip to content

Commit

Permalink
✅Test : 게시물 공유 api, url 실패 테스트 케이스#12
Browse files Browse the repository at this point in the history
- TestCase Red
- /shares/<content_id>/ url에 대한 리소스 찾을 수 없는 에러 발생

Related to #12
  • Loading branch information
Chestnut90 committed Oct 29, 2023
1 parent e870435 commit 5da26fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion shares/tests.py

This file was deleted.

Empty file added shares/tests/__init__.py
Empty file.
13 changes: 13 additions & 0 deletions shares/tests/test_shares_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from django.urls import reverse
from rest_framework.test import APITestCase


class SharesAPITestCase(APITestCase):
"""
/shares/<content_id>/ post 에 대한 테스트 케이스
"""

viewname = "shares"

def test_post_failure_no_api(self):
path = reverse(self.viewname, kwargs={"content_id": None})

0 comments on commit 5da26fb

Please sign in to comment.