forked from openradar/cmweather
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openradar#33 from chrishavlin/display_colormaps_in…
…_docs display the colormaps in docs
- Loading branch information
Showing
4 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ caption: Getting Started | |
hidden: | ||
--- | ||
usage | ||
contributing | ||
api | ||
contributing | ||
``` | ||
|
||
## Feedback | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pytest | ||
|
||
from cmweather import cm, cm_colorblind | ||
|
||
|
||
@pytest.mark.parametrize('cmap_d,sort_d', [(cm.cmap_d, True), (cm_colorblind.cmap_d, False)]) | ||
def test_get_cmap_gallery_html(cmap_d, sort_d): | ||
html_str = cm._get_cmap_gallery_html(cmap_d, sort_d=sort_d) | ||
|
||
assert isinstance(html_str, str) | ||
assert len(html_str) > 0 | ||
assert html_str.startswith('<div') | ||
assert html_str.endswith('</div>') |