|
25 | 25 | N_THREADS, |
26 | 26 | BENCHMARK, |
27 | 27 | GIT_REVISION, |
28 | | - FULL_TESTS, |
| 28 | + TEST_ACROSS_ALL_DBS, |
29 | 29 | get_conn, |
30 | 30 | random_table_suffix, |
31 | 31 | ) |
@@ -420,27 +420,29 @@ def __iter__(self): |
420 | 420 | } |
421 | 421 |
|
422 | 422 |
|
423 | | -def _get_test_db_pairs(full): |
424 | | - if full: |
| 423 | +def _get_test_db_pairs(): |
| 424 | + if str(TEST_ACROSS_ALL_DBS).lower() == "full": |
425 | 425 | for source_db in DATABASE_TYPES: |
426 | 426 | for target_db in DATABASE_TYPES: |
427 | 427 | yield source_db, target_db |
428 | | - else: |
| 428 | + elif int(TEST_ACROSS_ALL_DBS): |
429 | 429 | for db_cls in DATABASE_TYPES: |
430 | 430 | yield db_cls, db.PostgreSQL |
431 | 431 | yield db.PostgreSQL, db_cls |
432 | 432 | yield db_cls, db.Snowflake |
433 | 433 | yield db.Snowflake, db_cls |
| 434 | + else: |
| 435 | + yield db.PostgreSQL, db.PostgreSQL |
434 | 436 |
|
435 | 437 |
|
436 | | -def get_test_db_pairs(full=True): |
437 | | - active_pairs = {(db1, db2) for db1, db2 in _get_test_db_pairs(full) if db1 in CONN_STRINGS and db2 in CONN_STRINGS} |
| 438 | +def get_test_db_pairs(): |
| 439 | + active_pairs = {(db1, db2) for db1, db2 in _get_test_db_pairs() if db1 in CONN_STRINGS and db2 in CONN_STRINGS} |
438 | 440 | for db1, db2 in active_pairs: |
439 | 441 | yield db1, DATABASE_TYPES[db1], db2, DATABASE_TYPES[db2] |
440 | 442 |
|
441 | 443 |
|
442 | 444 | type_pairs = [] |
443 | | -for source_db, source_type_categories, target_db, target_type_categories in get_test_db_pairs(FULL_TESTS): |
| 445 | +for source_db, source_type_categories, target_db, target_type_categories in get_test_db_pairs(): |
444 | 446 | for type_category, source_types in source_type_categories.items(): # int, datetime, .. |
445 | 447 | for source_type in source_types: |
446 | 448 | for target_type in target_type_categories[type_category]: |
|
0 commit comments