Skip to content

Commit

Permalink
refactor: fix an incorrectly named test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdh committed Nov 10, 2023
1 parent 2ec570c commit c4376bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def transform(self, record: SourceRecord, data: dict):
assert v1 != object()


class TestOneToOneLink:
class TestManyToOneLink:
class ConcreteManyToOneViewLink(ManyToOneViewLink):
def transform(self, base_record: SourceRecord, data: dict):
pass
Expand All @@ -342,7 +342,7 @@ def test_update_from_base(self, tmp_path: Path):
field = "link_ref"
base_view = View(tmp_path / "bview", DataDB(tmp_path / "bdata"))
foreign_view = View(tmp_path / "fview", DataDB(tmp_path / "fdata"))
link = TestOneToOneLink.ConcreteManyToOneViewLink(
link = TestManyToOneLink.ConcreteManyToOneViewLink(
tmp_path / "1to1link", base_view, foreign_view, field
)

Expand All @@ -365,7 +365,7 @@ def test_update_from_foreign(self, tmp_path: Path):
field = "link_ref"
base_view = View(tmp_path / "bview", DataDB(tmp_path / "bdata"))
foreign_view = View(tmp_path / "fview", DataDB(tmp_path / "fdata"))
link = TestOneToOneLink.ConcreteManyToOneViewLink(
link = TestManyToOneLink.ConcreteManyToOneViewLink(
tmp_path / "1to1link", base_view, foreign_view, field
)

Expand Down Expand Up @@ -404,7 +404,7 @@ def test_get_foreign_record_data(self, tmp_path: Path):
field = "link_ref"
base_view = View(tmp_path / "bview", DataDB(tmp_path / "bdata"))
foreign_view = View(tmp_path / "fview", DataDB(tmp_path / "fdata"))
link = TestOneToOneLink.ConcreteManyToOneViewLink(
link = TestManyToOneLink.ConcreteManyToOneViewLink(
tmp_path / "1to1link", base_view, foreign_view, field
)

Expand All @@ -424,7 +424,7 @@ def test_clear_from_base(self, tmp_path: Path):
field = "link_ref"
base_view = View(tmp_path / "bview", DataDB(tmp_path / "bdata"))
foreign_view = View(tmp_path / "fview", DataDB(tmp_path / "fdata"))
link = TestOneToOneLink.ConcreteManyToOneViewLink(
link = TestManyToOneLink.ConcreteManyToOneViewLink(
tmp_path / "1to1link", base_view, foreign_view, field
)

Expand Down

0 comments on commit c4376bd

Please sign in to comment.