FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/lib/matplotlib/tests/test_backend_tools.py at main · spha-code/matplotlib · GitHub
spha-code
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
lib
/
matplotlib
/
tests
/
test_backend_tools.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (17 loc) · 501 Bytes
Breadcrumbs
matplotlib
/
lib
/
matplotlib
/
tests
/
test_backend_tools.py
Copy path
File metadata and controls
20 lines (17 loc) · 501 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import
pytest
from
matplotlib
.
backend_tools
import
ToolHelpBase
@
pytest
.
mark
.
parametrize
(
'rc_shortcut,expected'
, [
(
'home'
,
'Home'
),
(
'backspace'
,
'Backspace'
),
(
'f1'
,
'F1'
),
(
'ctrl+a'
,
'Ctrl+A'
),
(
'ctrl+A'
,
'Ctrl+Shift+A'
),
(
'a'
,
'a'
),
(
'A'
,
'A'
),
(
'ctrl+shift+f1'
,
'Ctrl+Shift+F1'
),
(
'1'
,
'1'
),
(
'cmd+p'
,
'Cmd+P'
),
(
'cmd+1'
,
'Cmd+1'
),
])
def
test_format_shortcut
(
rc_shortcut
,
expected
):
assert
ToolHelpBase
.
format_shortcut
(
rc_shortcut
)
==
expected
Back
|
FazBrowse Home
|
New Git URL