Skip to content

Commit

Permalink
v3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Coelho committed Mar 24, 2024
1 parent cbcccbc commit cc9e9e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ The package provides two fixtures:
- `setPass` to associate a password to a user, set to _None_ to remove credential.
- `setToken` to associate a token to a user, set to _None_ to remove credential.
- `setCookie` to add a cookie to a user, set value to _None_ to remove cookie.
- `setAuth` to add authentication data to a request `kwargs` and `cookies`.
- `setAuth` to add authentication data to a request `kwargs` and `cookies`.
This method is called automatically for adding credentials to a request.

- `ft_client` for app testing, which depends on the previous fixture, plus
environment variables which allow to find the application, at least one must
Expand All @@ -140,7 +141,7 @@ The package provides two fixtures:

The fixture then provides test methods to issue test requests against a Flask application:
- `request` generic request with `login`, `auth`, `status` end `content` extensions.
- `get post put patch delete` methods with `login`, `auth` and `status` extensions.
- `get post put patch delete` methods with `login`, `auth` and `status` extensions.
Moreover, `setPass`, `setToken` and `setCookie` are forwarded to the internal authenticator.

Authenticator environment variables can be set from the pytest Python test file by
Expand Down Expand Up @@ -204,7 +205,7 @@ Packages are distributed from [PyPI](https://pypi.org/project/FlaskTester/),
see also the [documentation](https://zx80.github.io/flask-tester/),
please report any [issues](https://github.com/zx80/flask-tester/issues).

### ? on ?
### 3.2 on 2024-03-24

Improved documentation.
Simpler code and API documentation.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "FlaskTester"
version = "3.1"
version = "3.2"
authors = [ { name = "Fabien Coelho", email = "flask.tester@coelho.net" } ]
description = "Pytest fixtures for Flask internal and external authenticated tests"
readme = "README.md"
Expand Down

0 comments on commit cc9e9e0

Please sign in to comment.