Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,12 @@ def test_join(table, table2):
c | 3 | 2 | 6
z | 1 | 10 | 10
""")

def test_join_no_matches(table, table2):
t = table
u = table2
u['points'] = (3, 4, 5)
assert t.join('points', u) is None

def test_set_format_with_no_format_column(mocker, table):
MockNumberFormatter = mocker.NonCallableMock(spec=NumberFormatter)
Expand Down Expand Up @@ -1008,6 +1014,7 @@ def test_append_table(table):


def test_append_different_table(table, table2):
"""Tests that join returns None when there are no matching rows."""
u = table2
with pytest.raises(ValueError):
table.append(u)
Expand Down