From e30f9a9b746f7dcdc8707e66cc65e580e6f83f47 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 8 Mar 2022 08:07:38 +0300 Subject: Fix tests, and issues caught by tests Fix some issues caught by tests due to changes introducing the hand-off of the partial correlations computations to an external process Fix some issues due to the changes that introduce context managers for database connections Update some tests to take the above two changes into consideration --- gn3/api/correlation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/api/correlation.py') diff --git a/gn3/api/correlation.py b/gn3/api/correlation.py index f2ac4d7..67897e8 100644 --- a/gn3/api/correlation.py +++ b/gn3/api/correlation.py @@ -112,7 +112,7 @@ def partial_correlation(): return reduce(__field_errors__(request_data), fields, errors) - args = json.loads(request.get_json()) + args = request.get_json() request_errors = __errors__( args, ("primary_trait", "control_traits", "target_db", "method")) if request_errors: -- cgit v1.2.3