¿ìÀ¯ Àå¼ö ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Wilkes Joiner and Chuck Collins
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://github.com/paltman/
¿ìÀ¯ Àå¼ö ű×
¿ìÀ¯ Àå¼ö ¼³¸í
Á¤Àû±â±¸°¡¾ø´Â Django ¾ÛÀ» Å×½ºÆ®ÇϽʽÿÀ MilkmanÀº Django ÇÁ·¹ÀÓ ¿öÅ© Å×½ºÆÃÀ»À§ÇÑ ¿ÀÇ ¼Ò½º °íÁ¤ ÀåÄ¡ ±³Ã¼ÀÔ´Ï´Ù. Á¶¸í±â Á¡¼ö¸¦ À¯Áö, ¹ö·ÁÁö°Å³ª °ü¸®µÇ°Å³ª, ÀÌ·Î ÀÎÇØ ¹ÝÀÀÀ» À¯ÁöÇÏ´ÂÁö ¿©ºÎ´Â Å×½ºÆ® Äڵ尡 ¾Æ´Ñ ¸¹Àº Äڵ带 »ý¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶ÇÇÑ, ÀÌ°ÍÀº ºÎ¼Áö±â ½±°í À¯ÁöÇϱⰡ ¾î·Æ°í, milkmanÀÇ ÃµÀç´Â ƯÁ¤ ¹°Ã¼ÀÇ ¸ðµç Çʵ忡 ´ëÇÑ ¸ðµç Çʵ忡 ´ëÇÑ µ¥ÀÌÅ͸¦ ¹«ÀÛÀ§·Î »ý¼ºÇÑ´Ù´Â °ÍÀÔ´Ï´Ù. °áÁ¤ Çʵ尡 test.example¿¡ ÇÊ¿äÇÕ´Ï´Ù. example : django.contrib.auth.models import userfrom django.core.urlresolvers ReverseFrom django.test °¡Á® ¿À±â Å×½ºÆ® ÄÉÀ̽º, clientfrom milkman °¡Á® ¿À±â milkmanfrom app.models import library, book, authorclass librarytest (testcase) : DEF ¼³Á¤ (ÀÚü) : self.user = milkman.deliver (»ç¿ëÀÚ) self.user.set_password ( "letmein") self.user.save () self.user2 = milkman.deliver (»ç¿ëÀÚ) self.user2.set_password ( "letmein") self.user2.save () self.library = milkman.deliver (library) self.book = milkman.deliver (Ã¥) self.author = milkman.deliver (ÀúÀÚ, lastname = "lewis") self.client = client () self.client.login (username = self.user.username, password = "letmein") self.url = ¿ª ( "book", args = ) def teardown (self) : self.user.delete () self.user2.delete () self.library.delete () self.book.delete () self.author.delete () ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í
¿ìÀ¯ Àå¼ö °ü·Ã ¼ÒÇÁÆ®¿þ¾î