Commit c8b5581
authored
feat: accept DatasetListItem where DatasetReference is accepted (googleapis#597)
* split out and pytestify list_tables tests.
Also, exercise dataset polymorphism in some of the tests.
* list_tables now accepts DatasetListItem objects
* Get coverage to 100%
But why do we run coverage on test code?
* lint
* Update exception text for DatasetListItem
* Bypass opentelemetry tracing in unit tests.
* Got rid of opentelemetry tracing checks. They aren't needed.
* abstracted dataset-argument handling
And applied it to `list_tables` and `list_models`.
* Converted list_model tests to pytest and included check for dataset polymorphism
* removed unneeded blanl lines.
* Made list_routines accept DatasetListItem
and conveted list_routines tests to pytest.
* create_dataset accepts DatasetListItem
Also converted create_dataset tests to pytest.
(And fixed some long lines.)
* Converted list_routine tests to pytest
* include string dataset representation in dataset polymorphism.
* removed some unused imports
* Updated delete_dataset tests
- Polymorphoc on dataset
- pytest
* black
* lint
* We don't actually need to avoid opentelemetry
And a 3.6 test dependened on it.
* fixed docstrings to include DatasetListItem in dataset polymorphic APIs.1 parent 8f4c0b8 commit c8b5581
File tree
9 files changed
+2005
-2099
lines changed- google/cloud/bigquery
- tests/unit
9 files changed
+2005
-2099
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
452 | 468 | | |
453 | 469 | | |
454 | 470 | | |
| |||
461 | 477 | | |
462 | 478 | | |
463 | 479 | | |
| 480 | + | |
464 | 481 | | |
465 | 482 | | |
466 | 483 | | |
| |||
491 | 508 | | |
492 | 509 | | |
493 | 510 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 511 | + | |
498 | 512 | | |
499 | 513 | | |
500 | 514 | | |
| |||
1133 | 1147 | | |
1134 | 1148 | | |
1135 | 1149 | | |
| 1150 | + | |
1136 | 1151 | | |
1137 | 1152 | | |
1138 | 1153 | | |
| |||
1160 | 1175 | | |
1161 | 1176 | | |
1162 | 1177 | | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
| 1178 | + | |
1170 | 1179 | | |
1171 | 1180 | | |
1172 | 1181 | | |
| |||
1210 | 1219 | | |
1211 | 1220 | | |
1212 | 1221 | | |
| 1222 | + | |
1213 | 1223 | | |
1214 | 1224 | | |
1215 | 1225 | | |
| |||
1237 | 1247 | | |
1238 | 1248 | | |
1239 | 1249 | | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
| 1250 | + | |
1248 | 1251 | | |
1249 | 1252 | | |
1250 | 1253 | | |
| |||
1288 | 1291 | | |
1289 | 1292 | | |
1290 | 1293 | | |
| 1294 | + | |
1291 | 1295 | | |
1292 | 1296 | | |
1293 | 1297 | | |
| |||
1315 | 1319 | | |
1316 | 1320 | | |
1317 | 1321 | | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
| 1322 | + | |
1326 | 1323 | | |
1327 | 1324 | | |
1328 | 1325 | | |
| |||
1365 | 1362 | | |
1366 | 1363 | | |
1367 | 1364 | | |
| 1365 | + | |
1368 | 1366 | | |
1369 | 1367 | | |
1370 | 1368 | | |
| |||
1384 | 1382 | | |
1385 | 1383 | | |
1386 | 1384 | | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
| 1385 | + | |
1395 | 1386 | | |
1396 | 1387 | | |
1397 | 1388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
0 commit comments