File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,6 @@ ignore = [
202202 " PTH109" , # `os.getcwd()` should be replaced by `Path.cwd()`
203203 " RUF005" , # Consider `[*path, str(key)]` instead of concatenation
204204 " RUF029" , # Function is declared `async`, but doesn't `await` or use `async` features.
205- " S108" , # Probable insecure usage of temporary file or directory
206205 " S311" , # Standard pseudo-random generators are not suitable for cryptographic purposes
207206 " S701" , # By default, jinja2 sets `autoescape` to `False`. Consider using `autoescape=True`
208207 " SIM102" , # Use a single `if` statement instead of nested `if` statements
Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
13import pytest
24
35from infrahub_sdk import InfrahubClient
68pytestmark = pytest .mark .httpx_mock (can_send_already_matched_responses = True )
79
810
9- async def test_class_init () -> None :
11+ async def test_class_init (tmp_path : Path ) -> None :
1012 class IFCheckNoQuery (InfrahubCheck ):
1113 pass
1214
@@ -29,9 +31,9 @@ class IFCheckNoName(InfrahubCheck):
2931 check = IFCheckNoName ()
3032 assert check .name == "IFCheckNoName"
3133
32- check = IFCheckWithName (root_directory = "/tmp" )
34+ check = IFCheckWithName (root_directory = str ( tmp_path ) )
3335 assert check .name == "my_check"
34- assert check .root_directory == "/tmp"
36+ assert check .root_directory == str ( tmp_path )
3537
3638
3739async def test_async_init (client ) -> None :
You can’t perform that action at this time.
0 commit comments