Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 committed Nov 27, 2024
1 parent 4cf260a commit 547af26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion perception_dataset/t4_dataset/classes/abstract_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ def save_json(self, output_dir: str):
@classmethod
@abstractmethod
def from_json(cls, filepath: str):
raise NotImplementedError
raise NotImplementedError()
4 changes: 4 additions & 0 deletions tests/t4_dataset/classes/test_abstract_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ def __init__(self):
def _to_record(self, **kwargs) -> str:
return AbstractRecordForTest()

@classmethod
def from_json(cls, filepath: str):
return AbstractTableForTest()


class TestAbstractRecord:
def test_token(self):
Expand Down

0 comments on commit 547af26

Please sign in to comment.