Method
assert_sql_query_result
(
self,
query,
exp_result,
*,
implicit_limit=0,
msg=None,
sort=None,
variables=None,
rel_tol=None,
abs_tol=None,
apply_access_policies=True,
)
Source from the content-addressed store, hash-verified
| 1248 | raise |
| 1249 | |
| 1250 | async def assert_sql_query_result( |
| 1251 | self, |
| 1252 | query, |
| 1253 | exp_result, |
| 1254 | *, |
| 1255 | implicit_limit=0, |
| 1256 | msg=None, |
| 1257 | sort=None, |
| 1258 | variables=None, |
| 1259 | rel_tol=None, |
| 1260 | abs_tol=None, |
| 1261 | apply_access_policies=True, |
| 1262 | ): |
| 1263 | if not apply_access_policies: |
| 1264 | ctx = self.without_access_policies() |
| 1265 | else: |
| 1266 | ctx = contextlib.nullcontext() |
| 1267 | async with ctx: |
| 1268 | await self.assert_query_result( |
| 1269 | query, |
| 1270 | exp_result, |
| 1271 | implicit_limit=implicit_limit, |
| 1272 | msg=msg, |
| 1273 | sort=sort, |
| 1274 | variables=variables, |
| 1275 | rel_tol=rel_tol, |
| 1276 | abs_tol=abs_tol, |
| 1277 | language="sql", |
| 1278 | ) |
| 1279 | |
| 1280 | async def assert_index_use(self, query, *args, index_type): |
| 1281 | def look(obj): |