Skip to content

Commit

Permalink
Testing notes
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik authored Jan 14, 2024
1 parent 09e1689 commit 6d61712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/testing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Testing

**Django Ninja** provides a test client to make it easy to test your API.
**Django Ninja** is fully compatible with standrad [django test client](https://docs.djangoproject.com/en/dev/topics/testing/tools/) , but also provides a test client to make it easy to test just APIs without middleware/url-resolver layer making tests run faster.

To test the following API:
```python
Expand Down Expand Up @@ -40,4 +40,4 @@ class HelloTest(TestCase):
client = NinjaTestClient(router)
# request.company_id will now be set within the view
response = client.get("/hello", company_id=1)
```
```

0 comments on commit 6d61712

Please sign in to comment.