TestConfig¶
Test Schema.
TestConfig
dataclass
¶
Configuration for testing task queues.
Attributes:
| Name | Type | Description |
|---|---|---|
worker |
bool
|
Worker. |
broker |
bool
|
Broker. |
storage |
bool
|
Storage. |
global_config |
bool
|
Global config. |
plugins |
bool
|
Plugins. |
Source code in src/qtasks/schemas/test.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
full()
classmethod
¶
Create a complete testing configuration.
Source code in src/qtasks/schemas/test.py
27 28 29 30 31 32 | |
full_broker()
classmethod
¶
Create a complete testing configuration for the broker.
Source code in src/qtasks/schemas/test.py
44 45 46 47 | |
only_broker(plugins=False)
classmethod
¶
Create a test configuration for the broker only.
Source code in src/qtasks/schemas/test.py
39 40 41 42 | |
only_worker(plugins=False)
classmethod
¶
Create a testing configuration for the worker only.
Source code in src/qtasks/schemas/test.py
34 35 36 37 | |