DalgoT4D / prefect-proxy

GNU Affero General Public License v3.0
1 stars 7 forks source link

Proxy tests #6

Closed Abhishek-N closed 1 year ago

Abhishek-N commented 1 year ago

Fix #1

fatchat commented 1 year ago

the script should be runnable multiple times without making edits. right now it complains because prefect won't let you reuse a blockname without "overwrite=True", and the create_airbyte_server_block function doesn't use this flag

clean solution: in your test script you should delete the objects after you create them e.g. using delete_airbyte_server_block

fatchat commented 1 year ago

run using e.g.

GOOGLE_APPLICATION_CREDENTIALS="ddp-ui-95e38-c45763654680.json" pytest tests.py