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
41
generated/sync/docs/Project.md
Normal file
41
generated/sync/docs/Project.md
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Project
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**budget_amount** | **int** | Project budget in cents (e.g. \"150\" = 1.50€) | [optional]
|
||||
**budget_time** | **int** | Time budget in minutes (e.g. \"90\" = 1 hour and 30 minutes) | [optional]
|
||||
**customer_id** | **int** | | [optional]
|
||||
**hourly_rate** | **float** | Hourly rate in cents (e.g. \"150\" = 1.50€) | [optional]
|
||||
**id** | **int** | | [optional] [readonly]
|
||||
**login_id** | **int** | If omitted or null, the currently active login is used | [optional]
|
||||
**name** | **str** | |
|
||||
**note** | **str** | | [optional] [default to 'null']
|
||||
**status** | **str** | | [optional] [default to 'OPEN']
|
||||
**due_at** | **date** | | [optional]
|
||||
**budget_notify_frequency** | **str** | | [optional] [default to 'ALWAYS']
|
||||
**consumed_time** | **int** | | [optional] [readonly]
|
||||
**consumed_amount** | **int** | | [optional] [readonly]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from easybill_generated_sync.models.project import Project
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of Project from a JSON string
|
||||
project_instance = Project.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print(Project.to_json())
|
||||
|
||||
# convert the object into a dict
|
||||
project_dict = project_instance.to_dict()
|
||||
# create an instance of Project from a dict
|
||||
project_from_dict = Project.from_dict(project_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