Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Shell
- 도커컴포즈
- sftp란
- zsh
- 테라폼 문법
- 도커
- minikube mac 설치
- docker-compose
- 테라폼 기본 문법
- 컨테이너
- AWS
- server
- Bash
- terraform
- linux
- terraform 문법
- Django
- 빅오노테이션
- nosql
- zshrc
- iterm2 shortcuts
- 파이썬
- docker
- DynamoDB
- minikube 설치 방법
- BIG-O NOTATION
- customize
- test
- python
- iterm2 단축키
Archives
- Today
- Total
목록TAG (1)
sklass의 s-class 프로그래밍 blog
[Django] unittest @tag
django test를 할때 명령어에서 특정 테스트만 테스트하게끔 하고 싶을때 @tag를 사용하면 수월합니다. 아래와 같이 테스트 함수 위에 @tag를 달아주세요. @tag("greeting") def test_hello(self) -> None: print("hello") @tag("introduce") def test_name(self) -> None: print("Joseph") @tag("greeting", "welcome") def test_welcome(self) -> None: print("welcome") 이렇게 하고 아래 명령어를 실행하면 됩니다. python3 manage.py test --tag="greeting" >> hello >> welcome python3 manage.py t..
django
2021. 9. 11. 00:15