Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin committed Sep 19, 2017
1 parent 1aab944 commit 93124e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "Theme",
"description": "Theme manager settings.",
"properties": {
"theme": {
"type": "string", "title": "Selected Theme", "default": "JupyterLab Light"
}
},
"type": "object"
}
9 changes: 8 additions & 1 deletion jupyterlab_launcher/tests/test_settings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ class SettingsAPITest(LabTestBase):
def setUp(self):
self.settings_api = SettingsAPI(self.request)

def test_get(self):
def test_new_get(self):
id = '@jupyterlab/apputils-extension:themes'
data = self.settings_api.get(id).json()
assert data['id'] == id
assert len(data['schema'])
assert 'data' in data

def test_old_get(self):
id = 'jupyter.extensions.shortcuts'
data = self.settings_api.get(id).json()
assert data['id'] == id
Expand Down

0 comments on commit 93124e6

Please sign in to comment.