Skip to content

Commit

Permalink
Merge pull request #67 from datakind/minor-fixes_bd027fb
Browse files Browse the repository at this point in the history
Seems sometimes column can be null, resulting in schema tests going i…
  • Loading branch information
JanPeterDatakind authored Mar 14, 2023
2 parents 60c380c + 970f04d commit 6fc2dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dot/utils/configuration_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ def generate_tests_from_db(project_id, logger=logging.Logger):
# test_parameters = ""

# Update 'tests' node for this entity with non column-specific tests
if column_name in (None, ""):
if column_name in (None, "","null"):
if "tests" not in config_options[entity_id]:
config_options[entity_id]["tests"] = []
if test_parameters not in ("", None):
if test_parameters not in ("", None,"null"):
test = {test_type: test_parameters}
config_options[entity_id]["tests"].append(test)

Expand Down

0 comments on commit 6fc2dc6

Please sign in to comment.