Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- why error
- mock.patch
- 포인터 매핑
- ida
- Injection
- Python
- x64
- Analysis
- MySQL
- ecma
- malware
- Ransomware
- idapro
- ida pro
- svn update
- debugging
- idapython
- data distribution
- pytest
- hex-rays
- h5py.File
- idb2pat
- NumPy Unicode Error
- commandline
- javascript
- TensorFlow
- error
- error fix
- open office xml
- Rat
Archives
- Today
- Total
목록mock.patch (1)
13 Security Lab
[Python] How to use pytest & mock & fixture
pytest & mock & fixture 1. pytest python 으로 개발하면서 코드 단위가 커지면 자연스레 테스트방법을 찾게 되는데 unittest와 pytest를 검색하게 된다. 그 중 별 이슈가 없는 한 pytest 를 선택하게 되는데.. 쉽고 강력한 테스트 라이브러리로서 unittest(파이썬 표준라이브러리) 와 유사하지만 단순한 문법으로 코드를 비교적 단순하게 만들 수 있다 실행 방법은 단순히 커맨드에서 pytest를 입력하면 된다. $ pytest =========================== test session starts ============================ platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, p..
Computer Science/Programming
2018. 9. 18. 22:20