share clouds

  • 홈
  • 태그
  • 방명록

test 1

Python Testing 기법 기초 내용 정리

Python Testing 기법 Mocking 단위 테스트를 작성할 때 외부에 의존하는 부분을 임의의 가짜로 대체하는 기법 Patching mock.patch unittest.mock.patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) patch()는 함수 데코레이터, 클래스 데코레이터 또는 컨텍스트 관리자 역할을 합니다. 함수 본문이나 with 문 내부에서, target은 new 객체로 패치됩니다. 함수/with 문이 종료될 때 패치가 복구됩니다. new가 생략되면, 대상(target)은 패치된 객체가 비동기 함수이면 AsyncMock으로, 그렇지 않으면 M..

Study 2020.06.07
1
더보기
프로필사진

Cloud 및 Devops와 관련된 내용을 간단히 다루는 블로그입니다.

Redirect Links

  • github
  • linkedin
  • 분류 전체보기 (40)
    • Study (11)
      • 알고리즘, 문제풀이 (1)
      • 오늘의 Youtube (5)
    • 교육, 자격증 (2)
    • Cloud (6)
      • AWS (5)
      • Azure (1)
    • Devops (7)
      • CI, CD (3)
      • Logging (3)
      • IaC(Terraform, Ansible) (1)
    • Programming (6)
      • react (1)
      • Golang (4)
      • Python (1)
    • OS Management (4)
      • Linux (1)
      • Windows (3)

Tag

monitoring, fluentd, terraform, iperf3, RabitMQ, Go, PYTHON, CodeBuild, 비동기논블록, Docker, CKA, NW, Kinesis, Iometer, Lambda, Golang, AppStream2.0, Inspec, AWS, DevOps,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바