Skip to content

Commit

Permalink
Update test_cdc.py
Browse files Browse the repository at this point in the history
Updating test_cdc.py: 
- deleted test cases involving deprecated methods(_alum_nu, _pacl_nu, _coag_nu, coag_q_max_est)
  • Loading branch information
vaishnavi-vinodh committed May 8, 2021
1 parent bd228de commit 4c3b574
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/design/test_cdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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)

0 comments on commit 4c3b574

Please sign in to comment.