MinRK
c9c23cd71c
cleanup test_nbmanager
...
use class setUp / teardown instead of the same context manager in every test
12 years ago
MinRK
1ae689f30c
Add Trust Notebook to File menu
12 years ago
MinRK
052955a84a
normalize unicode in notebook API tests
...
was failing comparison on OS X
12 years ago
Thomas Kluyver
4fe9f8d057
Case insensitive sorting in the dashboard.
...
Closes gh-5151
12 years ago
Thomas Kluyver
c1e8ddc64e
Hide directories beginning with _ from the dashboard.
...
Closes gh-5152
12 years ago
MinRK
cb25736a24
reorganize who knows what about paths
...
- add NotebookApp.notebook_dir
- add KernelManager.root_dir
- remove NotebookManager.notebook_dir, move to FileNBM.notebook_dir
Default value for KM.root_dir and fNBM.notebook_dir is NotebookApp.notebook_dir, but they can be configured separately.
SessionManager passes the API path to KernelManager,
which is responsible for turning it into the kernel's cwd.
12 years ago
Konrad Hinsen
26e3e31ad8
NotebookManager API: rename *notebook_model methods to *notebook
12 years ago
Brian E. Granger
7e1a179a7c
Addressing review comments.
...
* list_dirs and get_dir_model added to base NBM class.
* Calling of list_dirs moved to handler.
* type=notebook added to notebook model.
12 years ago
Brian E. Granger
717f031e01
Adding dashboard navigation tests for dir browsing.
12 years ago
Brian E. Granger
c1a8f5af6a
Get the existing tests working.
12 years ago
MinRK
b82b4997e7
test that rename fails with 409 if it would clobber
...
(test already passes, but it should still be tested)
closes #4600
12 years ago
Thomas Kluyver
79c27df217
Specify encoding in remainining instances of io.open
12 years ago
Thomas Kluyver
b829043a60
Add test for saving notebook with .py script
12 years ago
Thomas Kluyver
d4532983f4
Convert print statements to print function calls
...
libmodernize.fixes.fix_print
12 years ago
MinRK
40cce4d7e3
s/os.path.sep/os.sep/
12 years ago
MinRK
dfb538d881
Windows testing fixes
12 years ago
MinRK
1f90f4d7bb
test /files/ gives 403 on hidden files
12 years ago
MinRK
f894dbe664
test upload of v2 notebooks
12 years ago
MinRK
cf0218e2d1
don't use jsonapi in test_notebook_api
12 years ago
MinRK
66ccce69c6
copy_from in json, not in url param
12 years ago
MinRK
ef0d065712
test nbmanager.copy_notebook
12 years ago
MinRK
7ea311ad64
escape URLs in Location headers
12 years ago
MinRK
06d9b99141
update notebook api tests
...
with creation URL changes
also use unicode as the default name in tests,
to increase likelihood of catching unicode bugs.
12 years ago
MinRK
d1a36fe4c0
use 'id' for checkpoint ID key
...
rather than redundant checkpoint.checkpoint_id
12 years ago
Thomas Kluyver
05e85588cf
Add some unicode testing for saving notebooks
12 years ago
Thomas Kluyver
3f46a05a14
Test notebook checkpoint APIs
12 years ago
Thomas Kluyver
18f88d020f
Add failing test for listing nonexistant directory
12 years ago
Thomas Kluyver
99969474e0
Fix notebook manager test
12 years ago
Thomas Kluyver
a6a7255454
Fix some notebook model tests
12 years ago
MinRK
acb4245035
unicode normalization in test_notebooks_api
12 years ago
Thomas Kluyver
9f4a4ab3f8
Check Location header from renaming notebook
12 years ago
Thomas Kluyver
9144e8e57b
Fix check of notebook path
12 years ago
Thomas Kluyver
eb9a55ed6b
Add test for and fix REST save with rename
12 years ago
Thomas Kluyver
b9310d0e05
Add test for copying notebook through REST API
12 years ago
Thomas Kluyver
7725025d52
Add test for saving notebook via REST API
12 years ago
Thomas Kluyver
85d3c39b5a
Add test for REST API uploading notebook
12 years ago
Thomas Kluyver
9d9adb1186
Improve tests for notebook REST API
12 years ago
MinRK
fe59217989
move url_[un]escape to utils from nbm
12 years ago
MinRK
16e8d0ff43
adjust definition of 'path' in notebooks
...
never includes leading or trailing '/'
12 years ago
Zachary Sailer
d3e456d9a1
add tests to notebooks api
...
- check for correct status codes
- check headers location
- fix COPY api
12 years ago
Zachary Sailer
2a946c62ab
added tests to nbmanager for url encode/decode
12 years ago
Zachary Sailer
27680dacb2
Code review changes.
...
Fixed handler issues and api tests from code review
from @minrk and @carreau.
12 years ago
Zachary Sailer
04c6a3cfac
refactoring of nbmanager and filenbmanager
...
major clean up of the two managers. We make sure to follow
the standard models described in IPEP 16
12 years ago
Zachary Sailer
050a3098a8
review fixes on tests, add extra kernel api test
12 years ago
Zachary Sailer
e9ac1c2d37
add tests for session api
12 years ago
Zachary Sailer
8ce586a241
move notebooks api tests into notebooks/tests
12 years ago
Paul Ivanov
b8318708eb
clean up of get_os_path and its tests
...
work with @Zsailer
12 years ago
Zachary Sailer
470595f9e7
handle path separators with os.sep and add tests
...
Added more tests to the notebook manager to check for the correct
path separators on different operating system. Fixed the get_path
method.
12 years ago
Zachary Sailer
bdbe30dc3a
url encode/decode tests added to nbmanager
12 years ago
Paul Ivanov
a083ad1fd7
more named_notebook_path cleanup
...
named_notebook_path now returns path with leading and trailing slashes.
Work with @Zsailer
12 years ago