M Pacer
0999798949
use new utilities, enable more markdown cells to be added easily
2018-03-23 11:05:15 -07:00
M Pacer
33ca649b0b
add get_rendered_contents helper function
2018-03-23 11:04:25 -07:00
M Pacer
d9dd5d8f1c
add run_all method
2018-03-23 11:04:02 -07:00
M Pacer
5e43458d7d
add append, extend & coerce_to_cell methods
2018-03-23 11:03:32 -07:00
M Pacer
98c09f8fd0
use index method to get cell index in execute_cell
2018-03-23 11:02:43 -07:00
M Pacer
02e0ac38a4
fix add_cell logic, add content param, edit_cell default not render
2018-03-23 11:01:57 -07:00
M Pacer
bf4868dfc4
remove wait_for_selector call inside self.cells property
2018-03-23 10:58:58 -07:00
M Pacer
e9971a97aa
simplify __getitem__ __setitem__ to handle only ints/slices and ints
...
also adds todo to add slice support back to __setitem__
2018-03-23 10:58:36 -07:00
M Pacer
c16dac22ca
use new rich container __*__ methods to make adding & executing nicer
2018-03-23 08:33:47 -07:00
M Pacer
e183fc1627
enrich signature for execute_cell to accept both index and cell directly
2018-03-23 08:33:41 -07:00
M Pacer
3571f1604f
introduce cell __iter__, & __setitem__/__getitem__ for cells & indices
...
__getitem__ also accepts slices
also introduces __len__
2018-03-22 19:40:16 -07:00
M Pacer
5d19785e87
small changes to naming things
2018-03-22 19:34:45 -07:00
M Pacer
ebef7bae4c
create new_notebook classmethod creating/switching to new Notebook page
2018-03-22 17:46:06 -07:00
M Pacer
a112ab6d2a
add select_kernel function for clicking "new" & selecting a kernel
2018-03-22 17:44:56 -07:00
M Pacer
d634f1d0a1
add new_window contextmanager for creating, switching, & waiting on new page
2018-03-22 17:42:37 -07:00
M Pacer
3615d4af7c
enhance wait_for_selector to handle returning single elements
2018-03-22 17:40:24 -07:00
M Pacer
3092800a46
add wait_for_selector to the cells property and to_command_mode
2018-03-22 17:36:16 -07:00
M Pacer
c220215aa8
use wait_for_selector from utils module in test_dashboard_nav
2018-03-22 17:36:16 -07:00
M Pacer
e0ed2c475f
make authenticated browser module scope fixture for permission reasons
2018-03-22 17:34:02 -07:00
M Pacer
bf39dec1ef
move sauce driver logic into isolated function, simplify selenium_driver
2018-03-22 17:34:02 -07:00
M Pacer
86ae162890
add first markdown test and a notebook fixture for new notebook
2018-03-22 17:34:02 -07:00
M Pacer
e2243d6f60
add method that allows you to close the notebook without confirming
2018-03-22 17:34:02 -07:00
M Pacer
2b7f549498
Add add_cell and add_markdown_cell methods
2018-03-22 17:34:02 -07:00
M Pacer
4b6a0a7c44
Add CellTypeError and convert_cell_type and wait_for_stale_cell methods
2018-03-22 17:34:02 -07:00
M Pacer
3d3086e98a
add edit_cell and execute_cell methods; remove focus_cell edit parameter
2018-03-22 17:34:02 -07:00
M Pacer
c9a850492d
add body property
2018-03-22 17:34:02 -07:00
M Pacer
f9dd7c16e7
add basic cell functionality to Notebook class
2018-03-22 17:34:02 -07:00
M Pacer
0994db204a
Introduce Notebook class and give usage example in quick_selenium
2018-03-22 17:34:02 -07:00
M Pacer
7c659f5963
add quick_selenium script for quickly starting up a selenium interactively
2018-03-22 17:34:02 -07:00
M Pacer
9d4cf94d28
add utils module and wait_for_selector
2018-03-22 17:34:02 -07:00
M Pacer
e688774b86
add explicit url_in_tree function to test whether urls are in the tree
2018-03-22 15:17:02 -07:00
M Pacer
f17e775a2c
add jupyter_server_info to authenticated browser fixture
2018-03-22 15:15:21 -07:00
M Pacer
47d2be4a5e
move check & wait from only_dir_links to get_list_items; add docstrings
2018-03-22 14:33:45 -07:00
M Pacer
c8605f189b
use only_dir_links inside test to avoid clicking '..' or non-dir links
2018-03-22 14:07:35 -07:00
M Pacer
f4c90eb5d2
introduce only_dir_links function to extract tree links from listing
2018-03-22 14:06:18 -07:00
M Pacer
1f549fcce4
change dashboard test to click on links, go back, and check for contents
2018-03-09 11:58:33 -08:00
M Pacer
965970a17a
creates selenium driver(session-scope) & authenticated_browser fixtures
...
Originally written by @takluyver while pair programming
2018-03-09 11:54:10 -08:00
Thomas Kluyver
0c28482de0
Fix going back to root directory with history in notebook list
...
Bug found during pair programming with @mpacer
2018-03-09 18:30:24 +00:00
Thomas Kluyver
e321c80776
Merge pull request #3341 from takluyver/csp-sandbox-files
...
Use CSP header to treat served files as belonging to a separate origin
2018-03-09 14:22:16 +00:00
Thomas Kluyver
694ed72fb4
Use content_security_policy property to add restriction when serving user files
2018-03-08 16:59:12 +00:00
Thomas Kluyver
c1c7d3df59
Merge pull request #3373 from forbxy/fix-file-upload
...
fix:when upload large file,we cant stop
2018-03-08 14:25:27 +00:00
bxy007
191be80e83
fix spell error
2018-03-08 07:38:47 +08:00
Thomas Kluyver
290e57428b
Merge pull request #3399 from minrk/hmac-deprecated
...
add missing digestmod arg to HMAC
2018-03-07 09:49:30 +00:00
Min RK
f16b073394
python2 requires digestmod to be the module
...
rather than the module name as str
and use `hmac.new` API from the docs, rather than undocumented class constructor
2018-03-06 00:26:58 +01:00
Min RK
934e480782
add missing digestmod='sha256' in cookie_secret
...
Noticed in test output that creating HMAC without digestmod arg is deprecated.
While there, use proper length of 32 bytes for default tornado cookie_secret. There’s no benefit to using a cookie secret that's longer that the cookie digest size, which is 32 bytes.
2018-03-06 00:26:58 +01:00
Min RK
ae1f167dc6
Merge pull request #3398 from minrk/tornado5
...
Get tests running with tornado 5
2018-03-06 00:26:43 +01:00
Min RK
f00215bc80
Merge pull request #3380 from takluyver/i3365
...
Don't clear login cookie on requests without cookie
2018-03-06 00:22:47 +01:00
Min RK
a9d2c17f74
install test dependencies with —pre
...
to get more warning about upcoming releases that might cause breakages
2018-03-05 23:11:23 +01:00
Min RK
f77e3435cf
tornado 5 fixes in tests
...
- start asyncio loop explicitly in notebook thread (tornado 4 starts per-thread loops automatically, asyncio doesn’t)
- remove unsupported ‘io_loop=‘ arg in websocket test
application runs fine with tornado 5, just a few test bits needed updating
2018-03-05 23:10:56 +01:00
Min RK
95a8340063
Merge pull request #3367 from forbxy/master
...
fix error in i18n/README.md
2018-03-01 11:10:52 +01:00