comparison mrjunejune/src/blog/thoughts-on-tdd/index.md @ 158:1c0878eb17de

[MrJuneJune] Readme file gets compiled in server side.
author June Park <parkjune1995@gmail.com>
date Wed, 14 Jan 2026 07:59:19 -0800
parents 65e5a5b89a4e
children 295ac2e5ec00
comparison
equal deleted inserted replaced
157:2db6253f355d 158:1c0878eb17de
34 ``` 34 ```
35 35
36 If you’re unfamiliar with Django, the `create` and `update` methods save or update records in the database. It’s normal to serialize an object like this into a response for use in an API endpoint, often with a tool like `JSONRenderer().render(foo.data)`. 36 If you’re unfamiliar with Django, the `create` and `update` methods save or update records in the database. It’s normal to serialize an object like this into a response for use in an API endpoint, often with a tool like `JSONRenderer().render(foo.data)`.
37 37
38 Now, we understand detailed implementation as much as senior INSERT_LIBRARY engineer, the question is: *How do you write a unit test for this?* 38 Now, we understand detailed implementation as much as senior INSERT_LIBRARY engineer, the question is: *How do you write a unit test for this?*
39
40 39
41 There are two main reasons why this serializer is hard to test as a true "unit": 40 There are two main reasons why this serializer is hard to test as a true "unit":
42 41
43 **Dependency on Framework Classes** 42 **Dependency on Framework Classes**
44 43