@@ -117,39 +117,39 @@ async def repo(
117117
118118 async def test_import_schema_files (self , db : InfrahubDatabase , client : InfrahubClient , repo : InfrahubRepository ):
119119 commit = repo .get_commit_value (branch_name = "main" )
120- config_file = await repo .get_repository_config (branch_name = "main" , commit = commit )
120+ config_file = await repo .get_repository_config (branch_name = "main" , commit = commit ) # type: ignore[misc]
121121 assert config_file
122- await repo .import_schema_files (branch_name = "main" , commit = commit , config_file = config_file )
122+ await repo .import_schema_files (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
123123
124124 assert await client .schema .get (kind = "DemoEdgeFabric" , refresh = True )
125125
126126 async def test_import_schema_files_from_directory (
127127 self , db : InfrahubDatabase , client : InfrahubClient , repo : InfrahubRepository
128128 ):
129129 commit = repo .get_commit_value (branch_name = "main" )
130- config_file = await repo .get_repository_config (branch_name = "main" , commit = commit )
130+ config_file = await repo .get_repository_config (branch_name = "main" , commit = commit ) # type: ignore[misc]
131131 assert config_file
132132
133133 config_file .schemas = [Path ("schemas" )]
134- await repo .import_schema_files (branch_name = "main" , commit = commit , config_file = config_file )
134+ await repo .import_schema_files (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
135135
136136 assert await client .schema .get (kind = "DemoEdgeFabric" , refresh = True )
137137
138138 async def test_import_all_graphql_query (
139139 self , db : InfrahubDatabase , client : InfrahubClient , repo : InfrahubRepository
140140 ):
141141 commit = repo .get_commit_value (branch_name = "main" )
142- config_file = await repo .get_repository_config (branch_name = "main" , commit = commit )
142+ config_file = await repo .get_repository_config (branch_name = "main" , commit = commit ) # type: ignore[misc]
143143 assert config_file
144144
145- await repo .import_all_graphql_query (branch_name = "main" , commit = commit , config_file = config_file )
145+ await repo .import_all_graphql_query (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
146146
147147 queries = await client .all (kind = CoreGraphQLQuery )
148148 assert len (queries ) == 5
149149
150150 # Validate if the function is idempotent, another import just after the first one shouldn't change anything
151151 nbr_relationships_before = await count_relationships (db = db )
152- await repo .import_all_graphql_query (branch_name = "main" , commit = commit , config_file = config_file )
152+ await repo .import_all_graphql_query (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
153153 assert await count_relationships (db = db ) == nbr_relationships_before
154154
155155 # 1. Modify an object to validate if its being properly updated
@@ -167,7 +167,7 @@ async def test_import_all_graphql_query(
167167 )
168168 await obj .save (db = db )
169169
170- await repo .import_all_graphql_query (branch_name = "main" , commit = commit , config_file = config_file )
170+ await repo .import_all_graphql_query (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
171171
172172 modified_query = await client .get (kind = CoreGraphQLQuery , id = queries [0 ].id )
173173 assert modified_query .query .value == value_before_change
@@ -179,7 +179,7 @@ async def test_import_all_python_files(
179179 self , db : InfrahubDatabase , client : InfrahubClient , repo : InfrahubRepository , query_99
180180 ):
181181 commit = repo .get_commit_value (branch_name = "main" )
182- config_file = await repo .get_repository_config (branch_name = "main" , commit = commit )
182+ config_file = await repo .get_repository_config (branch_name = "main" , commit = commit ) # type: ignore[misc]
183183 assert config_file
184184
185185 await repo .import_all_python_files (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[call-overload]
@@ -256,16 +256,16 @@ async def test_import_all_yaml_files(
256256 self , db : InfrahubDatabase , client : InfrahubClient , repo : InfrahubRepository , query_99
257257 ):
258258 commit = repo .get_commit_value (branch_name = "main" )
259- config_file = await repo .get_repository_config (branch_name = "main" , commit = commit )
259+ config_file = await repo .get_repository_config (branch_name = "main" , commit = commit ) # type: ignore[misc]
260260 assert config_file
261- await repo .import_jinja2_transforms (branch_name = "main" , commit = commit , config_file = config_file )
261+ await repo .import_jinja2_transforms (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
262262
263263 rfiles = await client .all (kind = CoreTransformJinja2 )
264264 assert len (rfiles ) == 2
265265
266266 # Validate if the function is idempotent, another import just after the first one shouldn't change anything
267267 nbr_relationships_before = await count_relationships (db = db )
268- await repo .import_jinja2_transforms (branch_name = "main" , commit = commit , config_file = config_file )
268+ await repo .import_jinja2_transforms (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
269269 assert await count_relationships (db = db ) == nbr_relationships_before
270270
271271 # 1. Modify an object to validate if its being properly updated
@@ -286,7 +286,7 @@ async def test_import_all_yaml_files(
286286 )
287287 await obj .save (db = db )
288288
289- await repo .import_jinja2_transforms (branch_name = "main" , commit = commit , config_file = config_file )
289+ await repo .import_jinja2_transforms (branch_name = "main" , commit = commit , config_file = config_file ) # type: ignore[misc]
290290
291291 modified_rfile = await client .get (kind = CoreTransformJinja2 , id = rfiles [0 ].id )
292292 assert modified_rfile .template_path .value == rfile_template_path_value_before_change
0 commit comments