-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ch] Dynamo replicator: add try catch, script for local testing #5715
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
# try it out in the console. Change the database to fortesting to check. | ||
with open(Path(__file__).parent / "sample_workflow_job.json") as f: | ||
event = json.load(f) | ||
handle_event(event, dry_run=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could dump the query string here in dry-run mode for testing, i.e. writing it to query.sql
for example and check against the expected value in another file, i.e. sample_query.sql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, but its a bit jank
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! A small point about checking the query that is print to console in dry-run mode against its expected value for testing
fd595c7
to
5e1f4cc
Compare
Tested by