kopia lustrzana https://github.com/simonw/datasette
				
				
				
			Test table render_cell async as well as query results, refs #1425
							rodzic
							
								
									3bb6409a6c
								
							
						
					
					
						commit
						818b0b76a2
					
				|  | @ -185,8 +185,11 @@ def test_hook_render_cell_demo(app_client): | ||||||
|     } == json.loads(td.string) |     } == json.loads(td.string) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def test_hook_render_cell_async(app_client): | @pytest.mark.parametrize( | ||||||
|     response = app_client.get("/fixtures?sql=select+'RENDER_CELL_ASYNC'") |     "path", ("/fixtures?sql=select+'RENDER_CELL_ASYNC'", "/fixtures/simple_primary_key") | ||||||
|  | ) | ||||||
|  | def test_hook_render_cell_async(app_client, path): | ||||||
|  |     response = app_client.get(path) | ||||||
|     assert b"RENDER_CELL_ASYNC_RESULT" in response.body |     assert b"RENDER_CELL_ASYNC_RESULT" in response.body | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Simon Willison
						Simon Willison