Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
### Enhancements

- Add python 3.13 to list of supported versions ([#158](https://github.com/mpytools/mplotutils/pull/158)).
- Increased test coverage ([#180](https://github.com/mpytools/mplotutils/pull/180), and [#181](https://github.com/mpytools/mplotutils/pull/181)).
- Increased test coverage ([#180](https://github.com/mpytools/mplotutils/pull/180), [#181](https://github.com/mpytools/mplotutils/pull/181),
and [#182](https://github.com/mpytools/mplotutils/pull/182)).

### Bug fixes

Expand Down
16 changes: 16 additions & 0 deletions mplotutils/tests/test_set_map_layout_axes_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@
from . import figure_context, get_rtol


def test_set_map_layout_error_ncol_nrow():
with figure_context() as f:

axgr = AxesGrid(f, 111, nrows_ncols=(1, 1))

msg = "Cannot pass 'nrow' or 'ncol' for and 'AxesGrid'"
with pytest.raises(TypeError, match=msg):
set_map_layout(axgr, ncol=1)

with pytest.raises(TypeError, match=msg):
set_map_layout(axgr, nrow=1)

with pytest.raises(TypeError, match=msg):
set_map_layout(axgr, nrow=1, ncol=1)


def test_set_map_layout_default_width():
with figure_context() as f:

Expand Down