use nosec instead of disabling mktemp rule

This commit is contained in:
2021-08-11 02:51:29 +03:00
parent 48e79ce39c
commit 990d5dda81
3 changed files with 7 additions and 7 deletions

View File

@ -106,7 +106,7 @@ def test_cache_save_load(watcher: Watcher, package_ahriman: Package, mocker: Moc
"""
must save state to cache which can be loaded later
"""
dump_file = Path(tempfile.mktemp())
dump_file = Path(tempfile.mktemp()) # nosec
mocker.patch("ahriman.core.status.watcher.Watcher.cache_path",
new_callable=PropertyMock, return_value=dump_file)
known_current = {package_ahriman.base: (package_ahriman, BuildStatus())}