DRF Testcase headers 처리
def test_report_create(self): print("test_report_create") access_token = self.common_report_create({"email": "12@kakao.com", "password": "django_kakao_test"}) response = RequestsClient().post('http://127.0.0.1:8000/api/report', data={'title': 'hi', 'content': 'hello'}, headers={'Authorization': access_token}) self.assertEqual(response.status_code, 200) response = self.client.post(url, data={'con..
파이썬/장고
2021. 7. 9. 12:16
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Linux
- 자바
- 2021 KAKAO BLIND RECRUITMENT
- BFS
- 알고리즘
- 그래프
- Pattern
- PostgreSQL
- 면접
- 파이썬
- setattr
- Command Line
- 카카오
- env
- 프로그래머스
- thread
- django
- Celery
- dockerignore
- ubuntu
- Python
- Collections
- docker-compose
- Java
- DRF
- postgres
- headers
- Spring
- docker
- 백준
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함