From a0e7983a17a69969c7fb809179ea658a46722a6c Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Thu, 2 Feb 2023 17:23:15 +0100 Subject: [PATCH] Improve readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a6bd5b..0486671 100644 --- a/README.md +++ b/README.md @@ -131,12 +131,15 @@ with Flow(...) as flow: my_query = """SELECT something FROM somewhere""" my_expectations = {...} # A bunch of things you want to validate on the result of the query - validation_results = run_validation_on_mysql( + validation_results = run_data_test_on_mysql( name="my-cool-validation", mysql_credentials={...}, query=my_query, expectations=my_expectations ) + + if not validation_results["success"]: + print("The data is bad!!!") ``` ### Slack