Improve error handling and begin error test suite
This commit is contained in:
@ -7,9 +7,7 @@ those in the low level API.
|
||||
|
||||
import random
|
||||
import string
|
||||
from pathlib import Path
|
||||
from typing import cast
|
||||
import pytest
|
||||
import pykeepass
|
||||
|
||||
from sshecret_admin.services.keepass import PasswordContext
|
||||
@ -43,13 +41,6 @@ def create_random_entries(
|
||||
password_database.save()
|
||||
|
||||
|
||||
@pytest.fixture(name="password_database")
|
||||
def password_db_fixture(tmp_path: Path):
|
||||
"""Create a password database."""
|
||||
filename = tmp_path / "kpdb.kdbx"
|
||||
yield pykeepass.create_database(str(filename), password="test")
|
||||
|
||||
|
||||
def test_add_entry(password_database: pykeepass.PyKeePass) -> None:
|
||||
"""Test add entry."""
|
||||
context = PasswordContext(password_database)
|
||||
|
||||
Reference in New Issue
Block a user