Skip to content

Commit

Permalink
Remove smo-database.
Browse files Browse the repository at this point in the history
  • Loading branch information
pekasen committed Nov 25, 2024
1 parent f00136e commit 0a0b51d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dabapush/Reader/Reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def read(self) -> Iterator[Record]:
Generator which _should_ be one item per element.
"""

@abc.abstractmethod
@property
@abc.abstractmethod
def records(self) -> Iterator[Record]:
"""Subclasses **must** implement this abstract method and implement
their reading logic here.
Expand Down
5 changes: 3 additions & 2 deletions tests/Configuration/test_Registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for dabapush.Configuration.Registry."""

from importlib.metadata import EntryPoint

from dabapush.Configuration import Registry
Expand All @@ -8,13 +9,13 @@ def test_readers():
"""Should fetch and instantiate readers from entry point."""
readers = Registry.readers()

assert isinstance(readers, tuple)
assert isinstance(readers, list)
assert all(isinstance(_, EntryPoint) for _ in readers)


def test_writers():
"""Should fetch and instantiate writers from entry point."""
writers = Registry.writers()

assert isinstance(writers, tuple)
assert isinstance(writers, list)
assert all(isinstance(_, EntryPoint) for _ in writers)

0 comments on commit 0a0b51d

Please sign in to comment.