diff options
| author | J08nY | 2025-02-04 16:05:09 +0100 |
|---|---|---|
| committer | J08nY | 2025-02-04 16:05:09 +0100 |
| commit | 5e7ce331e8a1358e68017560e73f9d278f835daa (patch) | |
| tree | b6466bef9555c375f3e0f728b5b91e27e4e244d5 /tests | |
| parent | c7c5947258ceba795ddfca3eec3ce2654cc1097b (diff) | |
| download | sec-certs-5e7ce331e8a1358e68017560e73f9d278f835daa.tar.gz sec-certs-5e7ce331e8a1358e68017560e73f9d278f835daa.tar.zst sec-certs-5e7ce331e8a1358e68017560e73f9d278f835daa.zip | |
Fix #470.
Bad bad bs4!
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/cc/test_cc_protection_profiles.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cc/test_cc_protection_profiles.py b/tests/cc/test_cc_protection_profiles.py index 9bb47564..b8d2e821 100644 --- a/tests/cc/test_cc_protection_profiles.py +++ b/tests/cc/test_cc_protection_profiles.py @@ -63,6 +63,12 @@ def test_get_certs_from_web(pp_data_dir: Path, toy_pp_dataset: ProtectionProfile assert "b02ed76d2545326a" in dset.certs assert dset == toy_pp_dataset + cert = dset["b02ed76d2545326a"] + assert isinstance(cert.web_data.name, str) + assert isinstance(cert.web_data.status, str) + assert isinstance(cert.web_data.category, str) + assert isinstance(cert.web_data.version, str) + def test_download_and_convert_artifacts(toy_pp_dataset: ProtectionProfileDataset, tmpdir, pp_data_dir): toy_pp_dataset.copy_dataset(tmpdir) |
