Skip to content

Commit 167b443

Browse files
tests: use numeric ids for test param output
The default behavior of pytest would normally be nice, but when your inputs are large json strings the console output becomes very messy. Avoid lots of noise in the output by setting and id generator. Signed-off-by: John Mulligan <[email protected]>
1 parent dab7273 commit 167b443

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,10 @@ def test_share_config_no_path():
700700
False,
701701
),
702702
],
703+
# setting ID to a numeric range makes it a lot easier to read the
704+
# output on the console, versus having pytest plop two large json
705+
# blobs for each "row" of inputs
706+
ids=iter(range(100)),
703707
)
704708
def test_instance_config_equality(json_a, json_b, iname, expect_equal):
705709
gca = sambacc.config.GlobalConfig(io.StringIO(json_a))

0 commit comments

Comments
 (0)