From f2d0809816d3350b4c7c71bcf537c78977e29260 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 10 Jul 2018 14:16:40 +0200 Subject: [PATCH] fixup! Handle "suffix" used in action decorator kwargs --- tests/test_decorators.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_decorators.py b/tests/test_decorators.py index 7568513f3..f42e2e7c6 100644 --- a/tests/test_decorators.py +++ b/tests/test_decorators.py @@ -187,6 +187,16 @@ class ActionDecoratorTestCase(TestCase): 'description': 'Description', } + def test_detail_suffix(self): + @action(detail=True, suffix='Suffix') + def test_action(request): + raise NotImplementedError + + assert test_action.kwargs == { + 'description': None, + 'suffix': 'Suffix', + } + def test_detail_required(self): with pytest.raises(AssertionError) as excinfo: @action()