|
26 | 26 | from model.base_model import LoadMode, Source |
27 | 27 | from pipeline import run |
28 | 28 | from pydantic_utils import fields |
29 | | -from settings import enable_prior_auth_ingestion |
30 | 29 |
|
31 | 30 | # ryuk throws a 500 or 404 error for some reason |
32 | 31 | # seems to have issues with podman https://github.com/testcontainers/testcontainers-python/issues/753 |
@@ -82,16 +81,15 @@ def _do_test_pipeline(conn: Connection[DictRow], load_type: LoadType) -> None: |
82 | 81 | rows = cur.fetchmany(1) |
83 | 82 | assert rows[0]["bene_xref_efctv_sk"] == 353816021 |
84 | 83 |
|
85 | | - if enable_prior_auth_ingestion(): |
86 | | - cur = conn.execute("select * from idr.prior_auth order by mbi_num") |
87 | | - assert cur.rowcount == 21 |
88 | | - rows = cur.fetchmany(1) |
89 | | - assert rows[0]["mbi_num"] == "1OX4Y88RV68" |
| 84 | + cur = conn.execute("select * from idr.prior_auth order by mbi_num") |
| 85 | + assert cur.rowcount == 21 |
| 86 | + rows = cur.fetchmany(1) |
| 87 | + assert rows[0]["mbi_num"] == "1OX4Y88RV68" |
90 | 88 |
|
91 | | - cur = conn.execute("select * from idr.prior_auth_item order by mbi_num") |
92 | | - assert cur.rowcount == 64 |
93 | | - rows = cur.fetchmany(1) |
94 | | - assert rows[0]["mbi_num"] == "1OX4Y88RV68" |
| 89 | + cur = conn.execute("select * from idr.prior_auth_item order by mbi_num") |
| 90 | + assert cur.rowcount == 64 |
| 91 | + rows = cur.fetchmany(1) |
| 92 | + assert rows[0]["mbi_num"] == "1OX4Y88RV68" |
95 | 93 |
|
96 | 94 | cur = conn.execute("select max(last_ts) as max_ts from idr.load_progress") |
97 | 95 | row = cur.fetchone() |
@@ -546,9 +544,6 @@ def _do_test_pipeline(conn: Connection[DictRow], load_type: LoadType) -> None: |
546 | 544 |
|
547 | 545 |
|
548 | 546 | def _do_test_prior_auth_update_and_delete(conn: Connection[DictRow], load_type: LoadType) -> None: |
549 | | - if not enable_prior_auth_ingestion(): |
550 | | - return |
551 | | - |
552 | 547 | cur = conn.execute( |
553 | 548 | "select * from idr.prior_auth where mbi_num = '7ZM6HW2AT68' and utn = '-OTENCJLOQRAKA'" |
554 | 549 | ) |
@@ -676,7 +671,6 @@ def _setup_pipeline_environment(info: psycopg.ConnectionInfo) -> None: |
676 | 671 | os.environ["BFD_TEST_DATE"] = "2023-04-02" |
677 | 672 | os.environ["IDR_PER_BATCH_MIN_CONNECTIONS"] = "1" |
678 | 673 | os.environ["IDR_PER_BATCH_MAX_CONNECTIONS"] = "1" |
679 | | - os.environ["IDR_ENABLE_PRIOR_AUTH"] = "1" |
680 | 674 |
|
681 | 675 |
|
682 | 676 | @pytest.fixture(scope="module") |
|
0 commit comments