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
- docker
- docker-compose
- 자바
- 2021 KAKAO BLIND RECRUITMENT
- Pattern
- env
- ubuntu
- Linux
- 파이썬
- Collections
- Celery
- 프로그래머스
- 알고리즘
- Python
- 카카오
- thread
- postgres
- PostgreSQL
- 백준
- Command Line
- Java
- BFS
- DRF
- dockerignore
- headers
- django
- 그래프
- Spring
- 면접
- setattr
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함