Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 20, 2025
1 parent f9eeb8f commit afbcce6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/testing/model-factory.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ You can reuse the factory instance to produce a lot of models.
Example:

```python
{!> ../../docs_src/testing/factory/factory_basic.py !}
{!> ../docs_src/testing/factory/factory_basic.py !}
```

Now we have a basic working model. Now let's get more complicated. Let's remove the implicit id field via factory fields


```python
{!> ../../docs_src/testing/factory/factory_fields_exclude.py !}
{!> ../docs_src/testing/factory/factory_fields_exclude.py !}
```


Expand All @@ -42,7 +42,7 @@ When no callback is provided the mappings are used which use the field type name
E.g. CharFields use the "CharField" mapping.

```python
{!> ../../docs_src/testing/factory/factory_parametrize.py !}
{!> ../docs_src/testing/factory/factory_parametrize.py !}
```

### Setting database and schema
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/test-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Pretty cool, right?
Nothing like an example to see it in action.

```python title="tests.py" hl_lines="14"
{!> ../../docs_src/testing/testclient/tests.py !}
{!> ../docs_src/testing/testclient/tests.py !}
```

#### What is happening
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ nav:
- Exceptions: "exceptions.md"
- Tips and Tricks: "tips-and-tricks.md"
- Extensions: "extensions.md"
Testing:
- Testing:
- "testing/index.md"
- Test Client: "testing/test-client.md"
- Model Factory: "testing/model-factory.md"
Expand Down

0 comments on commit afbcce6

Please sign in to comment.