mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-07 23:35:07 +01:00
add test keepass with no data
This commit is contained in:
parent
b215b78dad
commit
36fd0c0bb6
3 changed files with 16 additions and 1 deletions
|
|
@ -225,6 +225,18 @@ def test_keepass_csv(capsys: pytest.CaptureFixture[str], tmp_path: pathlib.Path)
|
|||
assert captured.err == ''
|
||||
|
||||
|
||||
def test_keepass_empty(capsys: pytest.CaptureFixture[str], tmp_path: pathlib.Path) -> None:
|
||||
# Act
|
||||
extract_otp_secrets.main(['-k', '-', 'tests/data/only_comments.txt'])
|
||||
|
||||
# Assert
|
||||
|
||||
captured = capsys.readouterr()
|
||||
|
||||
assert captured.out == ''
|
||||
assert captured.err == ''
|
||||
|
||||
|
||||
def test_keepass_csv_stdout(capsys: pytest.CaptureFixture[str]) -> None:
|
||||
'''Two csv files .totp and .htop are generated.'''
|
||||
# Act
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue