Skip to content

Commit 6d736df

Browse files
author
Rickard Holmberg
committed
Fix test docstrings
1 parent d620bab commit 6d736df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/tests/test_clrmethod.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def Y(self):
2626
return self._x * 2
2727

2828
def test_set_and_get_property_from_py():
29-
"""Test usage of CLR defined reference types."""
29+
"""Test setting and getting clr-accessible properties from python."""
3030
t = ExampleClrClass()
3131
assert t.X == 3
3232
assert t.Y == 3 * 2
@@ -35,7 +35,7 @@ def test_set_and_get_property_from_py():
3535
assert t.Y == 4 * 2
3636

3737
def test_set_and_get_property_from_clr():
38-
"""Test usage of CLR defined reference types."""
38+
"""Test setting and getting clr-accessible properties from the clr."""
3939
t = ExampleClrClass()
4040
assert t.GetType().GetProperty("X").GetValue(t) == 3
4141
assert t.GetType().GetProperty("Y").GetValue(t) == 3 * 2
@@ -45,7 +45,7 @@ def test_set_and_get_property_from_clr():
4545

4646

4747
def test_set_and_get_property_from_clr_and_py():
48-
"""Test usage of CLR defined reference types."""
48+
"""Test setting and getting clr-accessible properties alternatingly from the clr and from python."""
4949
t = ExampleClrClass()
5050
assert t.GetType().GetProperty("X").GetValue(t) == 3
5151
assert t.GetType().GetProperty("Y").GetValue(t) == 3 * 2
@@ -63,9 +63,11 @@ def test_set_and_get_property_from_clr_and_py():
6363
assert t.Y == 5 * 2
6464

6565
def test_method_invocation_from_py():
66+
"""Test calling a clr-accessible method from python."""
6667
t = ExampleClrClass()
6768
assert t.test(41) == 41*2
6869

6970
def test_method_invocation_from_clr():
71+
"""Test calling a clr-accessible method from the clr."""
7072
t = ExampleClrClass()
7173
assert t.GetType().GetMethod("test").Invoke(t, [37]) == 37*2

0 commit comments

Comments
 (0)