Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ffein committed Aug 9, 2024
1 parent 2b72d14 commit 0792ba0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/docs/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ class HelloTest(TestCase):
self.assertEqual(response.json(), {"msg": "Hello World"})
```

It is also possible to access the deserialized data using the `data` property:
```python
self.assertEqual(response.data, {"msg": "Hello World"})
```

Arbitrary attributes can be added to the request object by passing keyword arguments to the client request methods:
```python
class HelloTest(TestCase):
Expand Down

0 comments on commit 0792ba0

Please sign in to comment.