diff options
| author | Adam Janovsky | 2021-05-13 16:33:07 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2021-05-13 16:33:07 +0200 |
| commit | 18a283fdf05fb83ed67a11c8a14c7a5627147fe9 (patch) | |
| tree | f0bd5f7b03963d20a4860371b696570512a4df1d /tests | |
| parent | 6f64ea6aed86210296cd89ac17bc17d2fb24f537 (diff) | |
| download | sec-certs-18a283fdf05fb83ed67a11c8a14c7a5627147fe9.tar.gz sec-certs-18a283fdf05fb83ed67a11c8a14c7a5627147fe9.tar.zst sec-certs-18a283fdf05fb83ed67a11c8a14c7a5627147fe9.zip | |
now trying with __path__
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_cc_heuristics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cc_heuristics.py b/tests/test_cc_heuristics.py index 6cf39de9..35d8f387 100644 --- a/tests/test_cc_heuristics.py +++ b/tests/test_cc_heuristics.py @@ -14,7 +14,7 @@ import tests.data.test_cpe_cve class TestCPEandCVEMatching(TestCase): - dataset_json_path: ClassVar[Path] = Path(sys.modules['tests.data.test_cpe_cve'].__file__).parent / 'vulnerable_dataset.json' + dataset_json_path: ClassVar[Path] = Path(tests.data.test_cpe_cve.__path__[0]) / 'vulnerable_dataset.json' data_dir_path: ClassVar[Path] = dataset_json_path.parent @classmethod |
