Skip to content

Commit b257545

Browse files
committed
Add test to test_keyboard_shortcuts_route.py
1 parent 1cdbfd1 commit b257545

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_keyboard_shortcuts_route.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
OK_STATUS_CODE = 200
2+
DATA_IN_SHORTCUTS_PAGE = b'General Shortcuts'
23

34

45
class TestKeyboardShortcuts:
@@ -7,3 +8,7 @@ class TestKeyboardShortcuts:
78
def test_get_page(self, client):
89
res = client.get(self.URL)
910
assert res.status_code == OK_STATUS_CODE
11+
12+
def test_get_keyboard_shortcuts_page(self, client):
13+
res = client.get(self.URL)
14+
assert DATA_IN_SHORTCUTS_PAGE in res.content

0 commit comments

Comments
 (0)