Skip to content

Commit

Permalink
Remove _LinkedDataObjectSchema (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartfeenstra authored Oct 7, 2024
1 parent 2f48d2f commit 8039ee8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 21 deletions.
13 changes: 0 additions & 13 deletions betty/test_utils/ancestry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
"""
Test utilities for :py:mod:`betty.ancestry`.
"""

from typing_extensions import override

from betty.json.linked_data import LinkedDataDumpable
from betty.json.schema import Object
from betty.project import Project


class _LinkedDataObjectSchema(LinkedDataDumpable[Object]):
@override
@classmethod
async def linked_data_schema(cls, project: Project) -> Object:
return Object()
3 changes: 1 addition & 2 deletions betty/test_utils/ancestry/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"""

from betty.ancestry.date import HasDate
from betty.test_utils.ancestry import _LinkedDataObjectSchema


class DummyHasDate(HasDate, _LinkedDataObjectSchema):
class DummyHasDate(HasDate):
"""
A dummy :py:class:`betty.ancestry.date.HasDate` implementation.
"""
Expand Down
3 changes: 1 addition & 2 deletions betty/test_utils/ancestry/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"""

from betty.ancestry.description import HasDescription
from betty.test_utils.ancestry import _LinkedDataObjectSchema


class DummyHasDescription(HasDescription, _LinkedDataObjectSchema):
class DummyHasDescription(HasDescription):
"""
A dummy :py:class:`betty.ancestry.description.HasDescription` implementation.
"""
Expand Down
3 changes: 1 addition & 2 deletions betty/test_utils/ancestry/locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"""

from betty.ancestry.locale import HasLocale
from betty.test_utils.ancestry import _LinkedDataObjectSchema


class DummyHasLocale(HasLocale, _LinkedDataObjectSchema):
class DummyHasLocale(HasLocale):
"""
A dummy :py:class:`betty.ancestry.locale.HasLocale` implementation.
"""
Expand Down
3 changes: 1 addition & 2 deletions betty/test_utils/privacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"""

from betty.privacy import HasPrivacy
from betty.test_utils.ancestry import _LinkedDataObjectSchema


class DummyHasPrivacy(HasPrivacy, _LinkedDataObjectSchema):
class DummyHasPrivacy(HasPrivacy):
"""
A dummy :py:class:`betty.privacy.HasPrivacy` implementation.
"""
Expand Down

0 comments on commit 8039ee8

Please sign in to comment.