# SPDX-FileCopyrightText: 2025 Marco Ricci <software@the13thletter.info>
#
# SPDX-License-Identifier: Zlib
from __future__ import annotations
import base64
import contextlib
import json
import pathlib
from typing import TYPE_CHECKING
import click.testing
import hypothesis
import pytest
from hypothesis import strategies
import tests
from derivepassphrase import _types, cli, exporter
from derivepassphrase.exporter import storeroom, vault_native
cryptography = pytest.importorskip('cryptography', minversion='38.0')
from cryptography.hazmat.primitives import ( # noqa: E402
ciphers,
hashes,
hmac,
padding,
)
from cryptography.hazmat.primitives.ciphers import ( # noqa: E402
algorithms,
modes,
)
if TYPE_CHECKING:
from collections.abc import Callable
from typing import Any
from typing_extensions import Buffer, Literal
class TestCLI:
"""Test the command-line interface for `derivepassphrase export vault`."""
def test_200_path_parameter(self) -> None:
"""The path `VAULT_PATH` is supported.
Using `VAULT_PATH` as the path looks up the actual path in the
`VAULT_PATH` environment variable. See
[`exporter.get_vault_path`][] for details.