def test_select_inv_ids_3(self, pg_db_conn): """Test select inventory_ids with empty repo collection""" with pg_db_conn: cur = pg_db_conn.cursor() repos = [] ServerApplication.select_repo_based_inventory_ids(cur, repos) assert list(cur.fetchall()) == []
def test_select_inv_ids_2(self, pg_db_conn): """Test select inventory_ids repo collection""" with pg_db_conn: cur = pg_db_conn.cursor() repos = ["repo1"] ServerApplication.select_repo_based_inventory_ids(cur, repos) assert len(cur.fetchall()) == 2