From d50d3a41bbc6640094ee44aba79105f89489585c Mon Sep 17 00:00:00 2001 From: tp Date: Sat, 8 Jul 2017 18:12:32 +0100 Subject: [PATCH] add test for decorator in test_one_to_many --- tests/test_checks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_checks.py b/tests/test_checks.py index 2c0e743..6694077 100644 --- a/tests/test_checks.py +++ b/tests/test_checks.py @@ -242,6 +242,9 @@ def test_one_to_many(): result = ck.one_to_many(df, 'units', 'parameter') tm.assert_frame_equal(df, result) + result = dc.one_to_many('units', 'parameter')(_noop)(df) + tm.assert_frame_equal(df, result) + def test_one_to_many_raises(): df = pd.DataFrame({ 'parameter': ['Cu', 'Cu', 'Pb', 'Pb'],