Min RK
67abf3ddab
update kernelspec test
...
to expect Python display name
11 years ago
Matthias Bussonnier
c1d9f4d436
Merge pull request #7283 from minrk/kernel-spec-model
...
add resource URLs to kernelspec model
11 years ago
Scott Sanderson
9aad3c631f
MAINT: Move `update` from FileContentsManager to ContentsManager.
...
The implementation in FileContentsManager is written entirely in terms
of the required API, and is sensible for other ContentsManager
implementations.
11 years ago
Min RK
e7b6d5dec3
update kernelspec model tests
11 years ago
Min RK
a417785c5e
add resource URLs to kernelspec model
...
- move kernelspec itself to model.spec
- add resources top-level key with resource URLs
- no more 404s or HEAD requests under normal circumstances
11 years ago
Min RK
ad995dfdb8
Merge pull request #7244 from minrk/rm-signature
...
don't store signatures in notebooks
11 years ago
Min RK
db5147998d
docstring on test_dir
11 years ago
Min RK
00e4ad59c0
add counter to new notebooks in test_manager
...
ensures brand new notebooks are untrusted
previously, all new notebooks were identical,
so once one was trusted, they would all start trusted.
11 years ago
Scott Sanderson
a1ad9abe51
MAINT: Unicode literal in assertDictContainsSubset
11 years ago
Scott Sanderson
4a2149d1c3
TEST: Add a non-notebook file to directory test.
11 years ago
Scott Sanderson
af7d1cdb50
STY: Define dirs as a single expression.
11 years ago
Scott Sanderson
f7cf204b25
BUG: Convert to bytes before comparing binary blobs.
11 years ago
Scott Sanderson
e9b81b6c7a
TEST: Verify base64 return values after decoding.
11 years ago
Scott Sanderson
fcc1bbecb3
MAINT: Remove unused blob and b64_blob attributes.
11 years ago
Scott Sanderson
f20a7b41cb
TEST: Abstract out directory/file deletion methods.
11 years ago
Scott Sanderson
46f299ccf2
TEST: Refactor symlink tests.
11 years ago
Min RK
a4b47e7e8a
move symlink tests to TestFileManager
11 years ago
Scott Sanderson
61c2e0442f
TEST: Add checks for subdirectory name splitting.
...
Previously the tests failed to catch a bug where a ContentsManager
didn't split name from path in a nested subdirectory.
11 years ago
Scott Sanderson
c7ca3066ec
TEST: More fine-grained test for directory contents.
...
Verify that each entry in a directory listing matches the result of a
content-less direct get.
11 years ago
Scott Sanderson
23e5e6da4f
TEST: Expect a 404 on delete of non-existent file.
11 years ago
Scott Sanderson
6bfab2de08
BUG: Allow for the possibility that to_path is empty string.
...
This is a legal input for representing the root directory.
11 years ago
Scott Sanderson
44805b94db
BUG: Sanitize to_path in ContentsManager.copy.
...
Without this, one of the test cases in `test_copy` attempts a copy to a
directory that starts with a leading double-slash.
11 years ago
Scott Sanderson
7ab1bf7487
BUG: Set default mimetype when base64 is requested
11 years ago
Min RK
c166a05f5d
abstract some methods in contents service tests
...
should allow re-use for ContentsManager subclasses
11 years ago
Min RK
dc70ae6b07
allow ContentsManager methods to return Futures
...
mainly adding `@gen.coroutine` and `yield gen.maybe_future` all over the place.
No FileContentsManager methods are actually async at this point.
11 years ago
Matthias Bussonnier
efbe695523
Merge pull request #7226 from takluyver/win-sleep-session-tests
...
Add a brief sleep after shutting down sessions in test teardown
11 years ago
Matthias Bussonnier
5829ceacb9
s/Json/JSON/g **/*.py
11 years ago
Thomas Kluyver
0178e2add0
Add a brief sleep after shutting down sessions in test teardown
...
This fixes a test failure for me on my Windows VM. See the comment for
details.
11 years ago
Matthias Bussonnier
4bd9ac7882
Add json in the base config manager name
11 years ago
Bussonnier Matthias
6f38f7b014
generalise manager
11 years ago
Min RK
42a92d4794
Merge pull request #6896 from minrk/save-hooks
...
Proposal: add pre/post-save hooks
11 years ago
Thomas Kluyver
f2e1b6f65f
Merge pull request #7145 from minrk/type____
...
ContentsManager type kwarg to match model key
11 years ago
Thomas Kluyver
4c62fd4210
Merge pull request #7149 from minrk/thread-nb
...
run test notebook server in thread
11 years ago
Scott Sanderson
2216b9522c
DEV: Tweaks from PR feedback.
...
- Reformat expected keys for in `validate_model`.
- Require `'mimetype'` to be non-None only when the model being
validated is a file.
- Add more information to the error when keys are unexpectedly non-None.
11 years ago
Scott Sanderson
70eb9e219f
DOC: Add docstring for validate_model.
11 years ago
Scott Sanderson
a45b8a0c67
DEV: Validate models returned from ContentsManager methods.
11 years ago
Min RK
22e206de6f
ContentsManager type kwarg to match model key
...
remove `_` suffix, making it consistent with models,
REST API, etc.
11 years ago
Thomas Kluyver
4cee2f5f3a
Merge pull request #7128 from minrk/more-v-less-m
...
A little more V, a little less M in the text editor
11 years ago
Thomas Kluyver
9f48e86477
Merge pull request #7136 from minrk/octet-stream
...
set default mimetype to octet-stream for binary files
11 years ago
Scott Sanderson
ccc8cb9cbf
Minor cleanups in the contents API.
...
Noticed while poking around with a linter enabled.
11 years ago
Min RK
f0181836b2
run test server in thread
...
instead of subprocess
11 years ago
Min RK
407e63cb80
set default mimetype to octet-stream for binary files
...
mimetype only specified if content=True
11 years ago
Min RK
c81609f5d6
redirect /edit/ to /files/ if not (utf8) text
11 years ago
Min RK
c238553a4e
set application/json on contents model replies
11 years ago
Min RK
ee00dcf083
docstring
11 years ago
Min RK
f2343e4ec5
update `--script` behavior to use `nbconvert --to script`
11 years ago
Min RK
1731b9b449
`--script` triggers post_save hook with nbconvert
11 years ago
Min RK
58c0a97ec3
add pre/post-save hooks
...
- `ContentsManager.pre_save_hook` runs on the path and model with content
- `FileContentsManager.post_save_hook` runs on the filesystem path and model without content
- use pre_save_hook for things like stripping output
- use post_save_hook for things like nbconvert --to python
11 years ago
Min RK
11ef669ec6
kernelspecs is a dict
...
sort menus client-side
11 years ago
Matthias Bussonnier
de52775797
Merge pull request #7078 from takluyver/kernelpath
...
Rework get_kernel_path logic
11 years ago