From be9d1d4aad720274f6d75345123fae8d6a96bc12 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 5 May 2022 15:19:08 +0300 Subject: Extract common error checking. Rename function. * Extract the common error checking code into a separate function * Rename the function to make its use clearer --- tests/integration/test_partial_correlations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/test_partial_correlations.py b/tests/integration/test_partial_correlations.py index d249b42..fc9f64f 100644 --- a/tests/integration/test_partial_correlations.py +++ b/tests/integration/test_partial_correlations.py @@ -3,7 +3,7 @@ from unittest import mock import pytest -from gn3.computations.partial_correlations import partial_correlations_entry +from gn3.computations.partial_correlations import partial_correlations_with_target_db @pytest.mark.integration_test @pytest.mark.parametrize( @@ -220,5 +220,5 @@ def test_part_corr_api_with_mix_of_existing_and_non_existing_control_traits( """ criteria = 10 with pytest.warns(UserWarning): - partial_correlations_entry( + partial_correlations_with_target_db( db_conn, primary, controls, method, criteria, target) -- cgit v1.2.3