Improve some attribute/method names
This commit is contained in:
parent
1b69b19ec3
commit
c7bb3e3c11
4 changed files with 18 additions and 16 deletions
|
|
@ -32,7 +32,7 @@ class MinimalGalleryClass:
|
|||
|
||||
gallery_data_schema: type[BaseModel] = MockGalleryData
|
||||
|
||||
def get_gallery_data(self) -> list[BaseModel]:
|
||||
def get_data_for_gallery(self) -> list[BaseModel]:
|
||||
"""Return a list of Mock Gallery Data."""
|
||||
return [MockGalleryData(mock="mock", foobar="foobar")]
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ class MinimalGallerySource(OFMThing, MinimalGalleryClass):
|
|||
Mixes MinimalGalleryClass into OFMThing to be recognised by the protocol.
|
||||
"""
|
||||
|
||||
show_in_gallery = True
|
||||
show_data_in_gallery = True
|
||||
|
||||
|
||||
class BadGallerySource(OFMThing):
|
||||
|
|
@ -52,11 +52,11 @@ class BadGallerySource(OFMThing):
|
|||
Shouldn't match the protocol as ``gallery_data_name`` is missing.
|
||||
"""
|
||||
|
||||
show_in_gallery = True
|
||||
show_data_in_gallery = True
|
||||
|
||||
gallery_data_schema: type[BaseModel] = MockGalleryData
|
||||
|
||||
def get_gallery_data(self) -> list[BaseModel]:
|
||||
def get_data_for_gallery(self) -> list[BaseModel]:
|
||||
"""Return a list of Mock Gallery Data."""
|
||||
return [MockGalleryData(mock="mock", foobar="foobar")]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue