- Nov 30, 2021
-
-
libkeyringctl/keyring.py: Change `get_packets_from_path()` to use full conditional statements which is easier to cover in tests. tests/test_keyring.py: Add simple tests for `get_packets_from_path()`, `get_packets_from_listing()`, `export()` and `build()`.
-
tests/test_keyring.py: Add basic tests for `convert()`, `export_ownertrust()` and `export_revoked()`.
-
Levente Polyak authored
-
Levente Polyak authored
-
tests/test_sequoia.py: Add unit test for libkeyringctl.sequoia.packet_kinds.
-
Levente Polyak authored
-
tests/test_keyring.py: Add tests for `is_pgp_fingerprint()`, `transform_{fingerprint,username}_to_keyring_path()`, `derive_username_from_fingerprint()` and get_fingerprints_from_paths()`.
-
tests/conftest.py: Add `valid_fingerprint()` and `valid_subkey_fingerprint()` fixtures to produce a generic "valid" PGP fingerprint string. Add the `invalid_fingerprint()` fixture to generate a set of "invalid" fingerprint strings.
-
Levente Polyak authored
This avoids collision between same issuer using key-id and full fingerprint in different versions of a packet, like signature.
-
Levente Polyak authored
CalledProcessError returns bytes for our invocations, the fix that decoded bytes of stdout was purely to make the mocked test happy while breaking the actual usage. Restore the behavior and fix the wrong mocked data.
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
tests/test_util.py: Add tests for `cwd()`, `natural_sort_path()`, `system()`, `absolute_path()`, `transform_fd_to_tmpfile()`, `get_cert_paths()`, `get_parent_cert_paths()` and `contains_fingerprint()`.
-
tests/test_sequoia.py: Add unit tests for `keyring_split()`, `keyring_merge()`, `packet_split()`, `packet_join()`, `inspect()`, `packet_dump()`, `packet_dump_field()`, `packet_signature_creation_time()`, and `latest_certification()`.
-
tests/test_git.py: Add unit test for `git_changed_files()`.
-
tests/*: The existing coverage configuration is setup to use/ omit a tests directory.
-