Add unit tests for authentication and webhook parsing
- Implement tests for basic and bearer authentication headers in `test_auth.py`. - Create tests for the `EasybillWebhookParser` in `test_webhooks.py`, covering JSON and form-encoded payloads, as well as a generic parse and acknowledgement method.
This commit is contained in:
commit
caacb339dd
550 changed files with 127217 additions and 0 deletions
32
generated/async/docs/LoginSecurity.md
Normal file
32
generated/async/docs/LoginSecurity.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# LoginSecurity
|
||||
|
||||
This object is only displayed if your request the login resource as an admin. Otherwise this property will be null.
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**two_factor_enabled** | **bool** | Shows if the login has two factor enabled for the login process | [optional] [readonly] [default to False]
|
||||
**recovery_codes_enabled** | **bool** | Shows if the login has recovery codes enabled to bypass two factor | [optional] [readonly] [default to False]
|
||||
**notify_on_new_login_enabled** | **bool** | Shows if the login has enabled to be notified if a new login is made from an unknown device. | [optional] [readonly] [default to True]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from easybill_generated_async.models.login_security import LoginSecurity
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of LoginSecurity from a JSON string
|
||||
login_security_instance = LoginSecurity.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print(LoginSecurity.to_json())
|
||||
|
||||
# convert the object into a dict
|
||||
login_security_dict = login_security_instance.to_dict()
|
||||
# create an instance of LoginSecurity from a dict
|
||||
login_security_from_dict = LoginSecurity.from_dict(login_security_dict)
|
||||
```
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue