aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorAdam Janovsky2022-02-10 17:51:43 +0100
committerAdam Janovsky2022-02-10 17:51:43 +0100
commitda9272cf75a233e246fbc7bc0b984b3df240ebdf (patch)
tree5be4c3386c51e8fffbd22299537505533f01c2bd /tests
parent652a89c77c39f8be6b7b3c5a2addd19b7a9ce728 (diff)
downloadsec-certs-da9272cf75a233e246fbc7bc0b984b3df240ebdf.tar.gz
sec-certs-da9272cf75a233e246fbc7bc0b984b3df240ebdf.tar.zst
sec-certs-da9272cf75a233e246fbc7bc0b984b3df240ebdf.zip
MyPy issue 1422 fixed with MyPy 0.920
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cc_heuristics.py2
-rw-r--r--tests/test_cc_txt_processing.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cc_heuristics.py b/tests/test_cc_heuristics.py
index 7d3bc057..ec8a49ed 100644
--- a/tests/test_cc_heuristics.py
+++ b/tests/test_cc_heuristics.py
@@ -15,7 +15,7 @@ from sec_certs.sample.protection_profile import ProtectionProfile
class TestCommonCriteriaHeuristics(TestCase):
- dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json" # type: ignore # mypy issue #1422
+ dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json"
data_dir_path: ClassVar[Path] = dataset_json_path.parent
tmp_dir: ClassVar[tempfile.TemporaryDirectory]
cc_dset: CCDataset
diff --git a/tests/test_cc_txt_processing.py b/tests/test_cc_txt_processing.py
index cc1cb23c..55d1c494 100644
--- a/tests/test_cc_txt_processing.py
+++ b/tests/test_cc_txt_processing.py
@@ -10,7 +10,7 @@ from sec_certs.sample.common_criteria import CommonCriteriaCert
class TestCommonCriteriaTextProcessing(TestCase):
- dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json" # type: ignore # mypy issue #1422
+ dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json"
data_dir_path: ClassVar[Path] = dataset_json_path.parent
tmp_dir: ClassVar[tempfile.TemporaryDirectory]
cc_dset: CCDataset