Skip to content

Commit

Permalink
test(#13): add test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Dec 20, 2023
1 parent 347c3c4 commit 7b772ee
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 182 deletions.
25 changes: 0 additions & 25 deletions test-13/README.md

This file was deleted.

143 changes: 0 additions & 143 deletions test-13/poetry.lock

This file was deleted.

14 changes: 0 additions & 14 deletions test-13/pyproject.toml

This file was deleted.

Empty file removed test-13/test_13/__init__.py
Empty file.
Empty file removed test-13/tests/__init__.py
Empty file.
51 changes: 51 additions & 0 deletions tests/fixtures.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,54 @@ You can also use words, to fit your writing style more closely\[^note\].
\[^note\]: Named footnotes will still render with numbers instead of the text but allow easier identification and linking.\
This footnote also has been made with a different syntax using 4 spaces for new lines.
.

Nested Python Classes. Resolves #13: https://github.com/KyleKing/mdformat-mkdocs/issues/13
.
1. Add a serializer class

```python
class RecurringEventSerializer(serializers.ModelSerializer): # (1)!
"""Used to retrieve recurring_event info"""
class Meta:
model = RecurringEvent # (2)!
fields = (
"uuid",
"name",
"start_time",
"duration_in_min",
"video_conference_url",
"additional_info",
"project",
)
read_only_fields = (
"uuid", # (3)!
"created_at",
"updated_at",
)
```
.
1. Add a serializer class

```python
class RecurringEventSerializer(serializers.ModelSerializer): # (1)!
"""Used to retrieve recurring_event info"""
class Meta:
model = RecurringEvent # (2)!
fields = (
"uuid",
"name",
"start_time",
"duration_in_min",
"video_conference_url",
"additional_info",
"project",
)
read_only_fields = (
"uuid", # (3)!
"created_at",
"updated_at",
)
```
.

0 comments on commit 7b772ee

Please sign in to comment.