Skip to content

Commit 2067fc0

Browse files
committed
cleanup
1 parent 513fdf0 commit 2067fc0

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

mplotutils/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@
5252
__version__ = "999"
5353

5454

55-
def empty_func_not_testted():
56-
57-
pass
58-
59-
6055
def __getattr__(attr):
6156

6257
m = (

mplotutils/tests/test_mapticklabels.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@ def test_yticklabels_robinson(pass_ax):
2929
assert ax.texts[-1].get_text() == "70°N"
3030

3131

32-
@pytest.mark.parametrize("pass_ax", (True, False))
33-
def test_yticklabels_robinson_180(pass_ax):
32+
def test_yticklabels_robinson_180():
3433
proj = ccrs.Robinson(central_longitude=180)
3534
with subplots_context(subplot_kw=dict(projection=proj)) as (f, ax):
3635
ax.set_global()
3736

3837
lat = np.arange(-90, 91, 20)
3938

40-
ax_ = ax if pass_ax else None
41-
mpu.yticklabels(lat, ax=ax_, size=8)
39+
mpu.yticklabels(lat, ax=ax, size=8)
4240

4341
x_pos = 0.0
4442

@@ -52,13 +50,14 @@ def test_yticklabels_robinson_180(pass_ax):
5250
assert ax.texts[-1].get_text() == "70°N"
5351

5452

55-
def test_xticklabels_robinson():
53+
@pytest.mark.parametrize("pass_ax", (True, False))
54+
def test_xticklabels_robinson(pass_ax):
5655
with subplots_context(subplot_kw=dict(projection=ccrs.Robinson())) as (f, ax):
5756
ax.set_global()
5857

5958
lon = np.arange(-180, 181, 60)
60-
61-
mpu.xticklabels(lon, ax=ax, size=8)
59+
ax_ = ax if pass_ax else None
60+
mpu.xticklabels(lon, ax=ax_, size=8)
6261

6362
y_pos = -89.99
6463

0 commit comments

Comments
 (0)