Skip to content

Commit

Permalink
fix broken indentation in review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 2, 2023
1 parent a09f23f commit 453b922
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apis/python/tests/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ def test_dataframe_with_enumeration(tmp_path, downgrade):
) as sdf:
data = {}
data["soma_joinid"] = [0, 1, 2, 3, 4]
data["foo"] = ["a", "bb", "ccc", "bb", "a"]
data["bar"] = ["cat", "dog", "cat", "cat", "cat"]
with pytest.raises(ValueError):
sdf.write(pa.Table.from_pydict(data))

data["foo"] = pd.Categorical(["a", "bb", "ccc", "bb", "a"])
data["bar"] = pd.Categorical(["cat", "dog", "cat", "cat", "cat"])
sdf.write(pa.Table.from_pydict(data))
assert sdf.enumeration("foo") == enums["enmr1"]
assert sdf.enumeration("bar") == enums["enmr2"]
data["foo"] = ["a", "bb", "ccc", "bb", "a"]
data["bar"] = ["cat", "dog", "cat", "cat", "cat"]
with pytest.raises(ValueError):
sdf.write(pa.Table.from_pydict(data))

data["foo"] = pd.Categorical(["a", "bb", "ccc", "bb", "a"])
data["bar"] = pd.Categorical(["cat", "dog", "cat", "cat", "cat"])
sdf.write(pa.Table.from_pydict(data))
assert sdf.enumeration("foo") == enums["enmr1"]
assert sdf.enumeration("bar") == enums["enmr2"]


@pytest.fixture
Expand Down

0 comments on commit 453b922

Please sign in to comment.