From cf996eb62c6a82f1f8973fbae99b06436b15a6b6 Mon Sep 17 00:00:00 2001 From: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com> Date: Wed, 5 Jan 2022 09:14:51 -0600 Subject: [PATCH] updating test of Number type check from boolean to 0,1 (#58) * updating test of Number type check from boolean to 0,1 * update changelog * removing draft contributing file --- CHANGELOG.md | 7 ++++++- tests/unit/utils.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 814bcc1c4..d9b97d78b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -## dbt-redshift 1.0.0 (Release TBD) +## dbt-redshift 1.0.1 (TBD) + +### Fixes +- Fix test related to preventing coercion of boolean values (True,False) to numeric values (0,1) in query results ([#58](https://github.com/dbt-labs/dbt-redshift/blob/1.0.latest/CHANGELOG.md)) + +## dbt-redshift 1.0.0 (December 3, 2021) ## dbt-redshift 1.0.0rc2 (November 24, 2021) diff --git a/tests/unit/utils.py b/tests/unit/utils.py index 68d0fc33f..a7ab7c565 100644 --- a/tests/unit/utils.py +++ b/tests/unit/utils.py @@ -253,7 +253,7 @@ def _get_tester_for(self, column_type): return agate.TimeDelta() for instance in agate_helper.DEFAULT_TYPE_TESTER._possible_types: - if type(instance) is column_type: + if isinstance(instance, column_type): return instance raise ValueError(f'no tester for {column_type}')