Test

    테스트 자동화 하기

    Refactoring"Whenever you read [Refactoring], it’s time to read it again. And if you haven’t read it yet, please do before writing another line of code." ?David Heinemeier Hansson, Creator of Ruby on Rails, Founder & CTO at Basecamp Fully Revised and Updated-Includes New Refactorings and Code Examples “Any fool can write code that a computer can understand. Good programmers write code that humans..

    unmanaged table에 대한 django test 하는 방법

    장고의 모델 클래스에는 Meta 옵션 중 하나로 managed라는 값이 존재한다. 이는 True 또는 False이고 기본값은 True로 설정된다. True로 설정된다면 그 뜻은 다음과 같다. 쉽게 말해 장고가 해당 모델 클래스를 관리한다는 뜻이다. 이를 공식문서에서는 어떻게 표현하고 있냐면, https://docs.djangoproject.com/en/4.2/ref/models/options/#managed Django The web framework for perfectionists with deadlines. docs.djangoproject.com That is, Django manages the database tables’ lifecycles. 즉, 테이블의 수명 주기를 관리한다라고 한다. 테이..