From be28a243b2ca27a569cb732003e3ebde69ed75b7 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 2 Jul 2015 00:05:49 -0400 Subject: Improved coverage for tests, handle multiple pytest.mark.supported decorators on one function --- tests/test_interfaces.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_interfaces.py') diff --git a/tests/test_interfaces.py b/tests/test_interfaces.py index 4d571ea6..329ac7db 100644 --- a/tests/test_interfaces.py +++ b/tests/test_interfaces.py @@ -36,6 +36,7 @@ class TestVerifyInterface(object): def method(self): """Method with no arguments""" + NonImplementer().method() with pytest.raises(InterfaceNotImplemented): verify_interface(SimpleInterface, NonImplementer) @@ -51,4 +52,5 @@ class TestVerifyInterface(object): def property(self): """A concrete property""" + NonImplementer().property verify_interface(SimpleInterface, NonImplementer) -- cgit v1.2.3 From cc04d679b81bcd69370ddc79c651e5e8a656ef04 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 2 Jul 2015 00:06:18 -0400 Subject: comment --- tests/test_interfaces.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_interfaces.py') diff --git a/tests/test_interfaces.py b/tests/test_interfaces.py index 329ac7db..bdb4a94d 100644 --- a/tests/test_interfaces.py +++ b/tests/test_interfaces.py @@ -36,6 +36,7 @@ class TestVerifyInterface(object): def method(self): """Method with no arguments""" + # Invoke this to ensure the line is covered NonImplementer().method() with pytest.raises(InterfaceNotImplemented): verify_interface(SimpleInterface, NonImplementer) @@ -52,5 +53,6 @@ class TestVerifyInterface(object): def property(self): """A concrete property""" + # Invoke this to ensure the line is covered NonImplementer().property verify_interface(SimpleInterface, NonImplementer) -- cgit v1.2.3