From 0a0b51d86b1edebae54743a7235d7b06c8625f5e Mon Sep 17 00:00:00 2001 From: Philipp Kessling Date: Mon, 25 Nov 2024 13:53:28 +0100 Subject: [PATCH] Remove smo-database. --- dabapush/Reader/Reader.py | 2 +- tests/Configuration/test_Registry.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dabapush/Reader/Reader.py b/dabapush/Reader/Reader.py index e828c58..50bd68b 100644 --- a/dabapush/Reader/Reader.py +++ b/dabapush/Reader/Reader.py @@ -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. diff --git a/tests/Configuration/test_Registry.py b/tests/Configuration/test_Registry.py index c1583b3..b299f44 100644 --- a/tests/Configuration/test_Registry.py +++ b/tests/Configuration/test_Registry.py @@ -1,4 +1,5 @@ """Tests for dabapush.Configuration.Registry.""" + from importlib.metadata import EntryPoint from dabapush.Configuration import Registry @@ -8,7 +9,7 @@ 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) @@ -16,5 +17,5 @@ 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)