From 4c3b574cc627b874df450a234622a12c4330640a Mon Sep 17 00:00:00 2001 From: vaishnavi-vinodh <63830657+vaishnavi-vinodh@users.noreply.github.com> Date: Sat, 8 May 2021 10:11:40 -0400 Subject: [PATCH] Update test_cdc.py Updating test_cdc.py: - deleted test cases involving deprecated methods(_alum_nu, _pacl_nu, _coag_nu, coag_q_max_est) --- tests/design/test_cdc.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/design/test_cdc.py b/tests/design/test_cdc.py index 6c24a524..0085bcb3 100644 --- a/tests/design/test_cdc.py +++ b/tests/design/test_cdc.py @@ -16,6 +16,7 @@ (cdc_20.coag_nu(2 * u.g / u.L, "alum"), 1.00357603e-06 * u.m**2 / u.s), (cdc_20.coag_nu(2 * u.g / u.L, "PACl"), 1.00364398e-06 * u.m**2 / u.s), + (cdc_20.coag_q_max, 0.01333333 * u.L / u.s), (cdc_60.coag_q_max, 0.012 * u.L / u.s), @@ -59,13 +60,3 @@ def test_cdc(actual, expected): assert actual.magnitude == pytest.approx(expected.magnitude) else: assert actual == pytest.approx(expected) - -@pytest.mark.parametrize('warning, func', [ - (UserWarning, lambda: cdc_20._alum_nu(2 * u.g / u.L)), - (UserWarning, lambda: cdc_20._pacl_nu(2 * u.g / u.L)), - (UserWarning, lambda: cdc_20._coag_nu(2 * u.g / u.L, 'alum')), - (UserWarning, lambda: cdc_20.coag_q_max_est), -]) - -def test_cdc_warning(warning, func): - pytest.warns(warning, func) \ No newline at end of file