diff options
author | Donald Stufft <donald@stufft.io> | 2014-12-06 16:18:19 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2014-12-06 16:18:19 -0500 |
commit | 5a729ea020632692d42fae5cf282e8bf8e40b9c6 (patch) | |
tree | 316e0f53bb091454a431856df9945710f4aa168b /tests/test_bcrypt.py | |
parent | c13b1e80fdde97b05756f3cccdbb0559a72798e5 (diff) | |
parent | ec8b0f7da9857c096786c216db762dc59a4d1e4f (diff) | |
download | py-bcrypt-git-5a729ea020632692d42fae5cf282e8bf8e40b9c6.tar.gz |
Merge pull request #32 from alex/simplify-test
Simplify, very slightly, how the parameterize decorator is used
Diffstat (limited to 'tests/test_bcrypt.py')
-rw-r--r-- | tests/test_bcrypt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py index bb32299..99b7a50 100644 --- a/tests/test_bcrypt.py +++ b/tests/test_bcrypt.py @@ -49,7 +49,7 @@ def test_gensalt_rounds_valid(rounds, expected, monkeypatch): assert bcrypt.gensalt(rounds) == expected -@pytest.mark.parametrize(("rounds",), [[x] for x in range(1, 4)]) +@pytest.mark.parametrize("rounds", list(range(1, 4))) def test_gensalt_rounds_invalid(rounds, monkeypatch): urandom = mock.Mock(return_value=b"0000000000000000") monkeypatch.setattr(os, "urandom", urandom) |