File: test_zxcvbn_rs_py.py

package info (click to toggle)
python-zxcvbn-rs-py 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208 kB
  • sloc: python: 63; makefile: 16; sh: 11
file content (14 lines) | stat: -rw-r--r-- 284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest

from zxcvbn_rs_py import zxcvbn


@pytest.mark.parametrize(
    "password,score",
    [
        ("correcthorsebatterystaple", 4),
    ],
)
def test_zxcvbn_rs_py(password: str, score: int) -> None:
    r = zxcvbn("correcthorsebatterystaple")
    assert r.score == score