aboutsummaryrefslogtreecommitdiff
path: root/test_utils/models/upk/conftest.py
diff options
context:
space:
mode:
authorstuppie2026-09-18 14:56:36 -0600
committerstuppie2026-09-18 14:56:36 -0600
commitf4909f0fafd6161dd423859afadb72b916e90564 (patch)
tree4b364461c185f935d315b591d3b52808d3824f45 /test_utils/models/upk/conftest.py
parent438ea05fdb98c847d534ae190179b4766fa96f26 (diff)
downloadgeneralresearch-f4909f0fafd6161dd423859afadb72b916e90564.tar.gz
generalresearch-f4909f0fafd6161dd423859afadb72b916e90564.zip
1 single broken managers test
Diffstat (limited to 'test_utils/models/upk/conftest.py')
-rw-r--r--test_utils/models/upk/conftest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test_utils/models/upk/conftest.py b/test_utils/models/upk/conftest.py
index ad96bbb..520d566 100644
--- a/test_utils/models/upk/conftest.py
+++ b/test_utils/models/upk/conftest.py
@@ -33,6 +33,13 @@ def insert_data_from_csv(
df["id"] = df["id"].map(lambda x: UUID(x).hex)
args = df.to_dict("tight")["data"]
+ # Fix issue with nullable cols
+ if table_name == 'marketplace_question':
+ for arg in args:
+ for idx, col in enumerate(arg):
+ if pd.isnull(col):
+ arg[idx] = None
+
with thl_web_rw.make_connection() as conn:
with conn.cursor() as c:
if disable_fk_checks: