Skip to content

Commit

Permalink
Proxy marshmallow missing utility
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelacey committed Mar 7, 2023
1 parent 5c75d48 commit 5839ba7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
31 changes: 15 additions & 16 deletions tests/test_serializers.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
from tests.serializers import (
ProfileSerializer,
RoleSerializer,
SkillSerializer,
TagSerializer,
TaskSerializer,
TeamSerializer,
UserSerializer,
)
import marshmallow

import tests.serializers
import worf.serializers


def test_missing():
assert worf.serializers.missing == marshmallow.missing


def test_profile_serializer():
assert f"{ProfileSerializer()}"
assert f"{tests.serializers.ProfileSerializer()}"


def test_role_serializer():
assert f"{RoleSerializer()}"
assert f"{tests.serializers.RoleSerializer()}"


def test_skill_serializer():
assert f"{SkillSerializer()}"
assert f"{tests.serializers.SkillSerializer()}"


def test_tag_serializer():
assert f"{TagSerializer()}"
assert f"{tests.serializers.TagSerializer()}"


def test_task_serializer():
assert f"{TaskSerializer()}"
assert f"{tests.serializers.TaskSerializer()}"


def test_team_serializer():
assert f"{TeamSerializer()}"
assert f"{tests.serializers.TeamSerializer()}"


def test_user_serializer():
assert f"{UserSerializer()}"
assert f"{tests.serializers.UserSerializer()}"
1 change: 1 addition & 0 deletions worf/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import marshmallow
from marshmallow.decorators import * # noqa: F401, F403
from marshmallow.utils import missing # noqa: F401

from django.db.models.fields.files import FieldFile

Expand Down

0 comments on commit 5839ba7

Please sign in to comment.