Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
[Sprint] Rc fixes#2193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
[Sprint] Rc fixes#2193
Changes from1 commit
2a85769
b300ef3
7eb7ec0
aede120
55475a0
8df2f0b
55d4b44
1cfedb9
09a2450
6d79027
a41204d
3840623
1042544
be48e7d
09bf2dd
cda758d
1976db5
7302c31
febaa0d
c3bfe6c
fa3f07d
6bd355f
15b8b57
4ce865c
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,24 +4,27 @@ | ||
from matplotlib.tests import assert_str_equal | ||
templaterc = os.path.join(os.path.dirname(__file__), 'test_rcsetup.rc') | ||
def test_defaults(): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. It's nice to have some unit tests for this! Thanks! | ||
# the default values should be successfully set by this class | ||
deprecated = ['svg.embed_char_paths', 'savefig.extension'] | ||
with mpl.rc_context(rc=mpl.rcsetup.defaultParams): | ||
for k, v in mpl.rcsetup.defaultParams.iteritems(): | ||
if k not in deprecated: | ||
assert mpl.rcParams[k][0] == v[0] | ||
def test_template(): | ||
# the current matplotlibrc.template should validate successfully | ||
mpl.rc_file(templaterc) | ||
for k, v in templateParams.iteritems(): | ||
assert mpl.rcParams[k] == v[0] | ||
def test_unicode(): | ||
# unicode formatted valid strings should validate. | ||
for k, v in mpl.rcsetup.defaultParams.iteritems(): | ||
assert k == v[1](unicode(v[0])) | ||
assert mpl.rcParams[k] == v[0] | ||