-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅Test : 게시물 공유 api, url 실패 테스트 케이스#12
- TestCase Red - /shares/<content_id>/ url에 대한 리소스 찾을 수 없는 에러 발생 Related to #12
- Loading branch information
1 parent
e870435
commit 5da26fb
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |