-
pytest fixture
python testing package인 pytest 중 fixture에 대해서 pytest 공식 문서를 참고해 작성했습니다. 왜 TestCase가 아니라 pytest를 사용하는 지에 대해서는 왜 pytest 를 사용할까? 포스트를 참고하면 됩니다. 목차 pytest fixtures: explicit, modular, scalable. 함수 인자들로서 사용되는 fixture들(Fixtures as Function arguments) “Funcargs” 종속성 대입의 대표적인 예 한 모듈(또는 클래스/세션)에서 테스트들을 거친 fixture를...
-
CircleCI에서 NPM - ECONNRESET 관련 에러
원래 잘 작동 중이던 circleCI가, 갑자기 npm install을 하는 과정에서 다음과 같은 에러를 내뿜으며 빌드가 실패되고 말았다. npm ERR! Linux 3.13.0-86-generic npm ERR! argv "/home/ubuntu/nvm/versions/node/v4.3.0/bin/node" "/home/ubuntu/nvm/versions/node/v4.3.0/bin/npm" "install" npm ERR! node v4.3.0 npm ERR! npm v2.14.12 npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! syscall read npm ERR! network...
-
DRF - 클래스 기반 Views
본 문서는 DRF 공식 문서를 번역한 문서입니다. 클래스 기반 뷰 ” django 클래스 기반 view는 예전 스타일의 view로 부터 시작하는 것을 환영한다.” - Reinout van Rees REST framework는 APIView class를 제공하는데, 이는 Django의 View 하위 클래스 입니다. APIVIew class들은 일반적인 View 클래스들과는 다음과 같이 다릅니다: handler methods에게 전달된 request들은 REST...
-
Let's Encrypt를 사용해 무료로 https(ssl)를 붙이는 방법(Ubuntu 14.04, certbot, 2017.09 updated)
소개 Let’s Encrypt는 무료 SSL 인증서를 얻고 설치하는 쉬운 방법인 새로운 Certificate Authority(CA) 입니다. 그 때문에 웹 서버에서 https를 암호화되는 것을 가능하게 합니다. 필요한 단계들을 대부분 자동화 시켜주도록 하는 certbot 소프트웨어를 이용함으로서 이 처리를 간단하게 할 수 있습니다. 현재, 인증서를 설치하고 얻는 전체의 과정은 아파치 웹서버 에서만 완전히 자동화 할...
-
redux-saga에서 제공하는 helper effects
redux-saga에서 saga helper에 관한 공식 블로그에서 제공하는 문서를 번역, 요약한 자료입니다. redux-saga 란? redux-saga is a library that aims to make side effects (i.e. asynchronous things like data fetching and impure things like accessing the browser cache) in React/Redux applications easier and better. 번역 : redux-saga는 사이드 이펙트(예를 들어, 데이터...