Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Oct 7, 2023
1 parent 288998b commit 8fda2f0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/test_tblfaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def test_normal_locale(self):
expected = TableData(
None,
("name", "address"),
[("近藤 裕樹", "三重県荒川区明石町14丁目4番16号"), ("村上 拓真", "北海道荒川区白金台15丁目19番4号 コート所野806")],
[
("木村 陽一", "石川県香取市台東29丁目16番13号"),
("鈴木 晃", "兵庫県狛江市丹勢29丁目9番8号 南郷屋パーク008"),
],
)
out_table = dumps_tabledata(out, **dump_opts)
expected_table = dumps_tabledata(expected, **dump_opts)
Expand All @@ -117,7 +120,10 @@ def test_normal_random(self):

@pytest.mark.parametrize(
["providers", "rows", "expected"],
[[["invalid provider"], 1, ValueError], [["name"], -1, ValueError]],
[
[["invalid provider"], 1, ValueError],
[["name"], -1, ValueError],
],
)
def test_exception(self, providers, rows, expected):
faker = TableFaker()
Expand Down

0 comments on commit 8fda2f0

Please sign in to comment.