mirror of https://github.com/pallets/flask.git
				
				
				
			Merge branch '2.2.x'
This commit is contained in:
		
						commit
						4ddb3f73ba
					
				|  | @ -15,7 +15,7 @@ repos: | |||
|         files: "^(?!examples/)" | ||||
|         args: ["--application-directories", "src"] | ||||
|   - repo: https://github.com/psf/black | ||||
|     rev: 22.12.0 | ||||
|     rev: 23.1.0 | ||||
|     hooks: | ||||
|       - id: black | ||||
|   - repo: https://github.com/PyCQA/flake8 | ||||
|  |  | |||
|  | @ -91,7 +91,7 @@ To run such an application, you can use the :command:`flask` command: | |||
| 
 | ||||
| .. code-block:: text | ||||
| 
 | ||||
|     $ flask run --app hello run | ||||
|     $ flask --app hello run | ||||
| 
 | ||||
| Flask will automatically detect the factory if it is named | ||||
| ``create_app`` or ``make_app`` in ``hello``. You can also pass arguments | ||||
|  | @ -99,7 +99,7 @@ to the factory like this: | |||
| 
 | ||||
| .. code-block:: text | ||||
| 
 | ||||
|     $ flask run --app hello:create_app(local_auth=True)`` | ||||
|     $ flask --app hello:create_app(local_auth=True) run`` | ||||
| 
 | ||||
| Then the ``create_app`` factory in ``myapp`` is called with the keyword | ||||
| argument ``local_auth=True``. See :doc:`/cli` for more detail. | ||||
|  |  | |||
|  | @ -227,7 +227,6 @@ def test_session_error_pops_context(): | |||
| 
 | ||||
| 
 | ||||
| def test_session_dynamic_cookie_name(): | ||||
| 
 | ||||
|     # This session interface will use a cookie with a different name if the | ||||
|     # requested url ends with the string "dynamic_cookie" | ||||
|     class PathAwareSessionInterface(SecureCookieSessionInterface): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue