10000 fix(codecov): coverage · matplotlib/matplotlib@a228f5d · GitHub
[go: up one dir, main page]

Skip to content

Commit a228f5d

Browse files
committed
fix(codecov): coverage
1 parent c4c3aa7 commit a228f5d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753 8000 8,17 +7538,18 @@ def __init__(self, *args, foo, **kwargs):
75387538
self.foo = foo
75397539

75407540

7541+
@pytest.mark.parametrize("twinning", ["twinx", "twiny"])
75417542
@pytest.mark.parametrize(("axes_class", "kw0", "kw1"), [
75427543
(Axes, {}, {}),
75437544
(SubclassAxes, {"foo": 0}, {"foo": 1}),
75447545
])
7545-
def test_twinx_subclass(axes_class, kw0, kw1):
7546+
def test_twinning_subclass(twinning, axes_class, kw0, kw1):
75467547
fig = plt.figure()
75477548
classed_ax = fig.add_subplot(axes_class=axes_class, **kw0)
75487549
for k, v in kw0.items():
75497550
assert getattr(classed_ax, k) == v
75507551

7551-
twin = classed_ax.twinx(axes_class=axes_class, **kw1)
7552+
twin = getattr(classed_ax, twinning)(axes_class=axes_class, **kw1)
75527553
assert type(twin) is axes_class
75537554
for k, v in kw1.items():
75547555
assert getattr(twin, k) == v

0 commit comments

Comments
 (0)
2B33
0