A collection of opinionated factories for common Tryton modules
Project description
Trytond-factories
Trytond-factories is a factory_trytond extension which uses factory_boy that allows to create Tryton ERP models with factories.
You can inherit ERP's core model factories to do some testing or to populate databases with some sample data.
How does it work?
Import this module and you will be able to create objects such as Company, Party, etc.
Here's an example with Tryton's model Company:
import trytond_factories
company = trytond_factories.Company.create(party__name='Example Company')
print(company)
>>> Pool().get('company.company')(1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trytond_factories-7.4.0.tar.gz.
File metadata
- Download URL: trytond_factories-7.4.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a011b27c3e8cd6127a8c6425c3fad8a06b71e6569f9f568795b4d64d70526c2
|
|
| MD5 |
3dfb6bc3a5df680ae43c809751730b15
|
|
| BLAKE2b-256 |
1b8a5080a441655cc7da4cdc65341c0a80f4555f16ae7dc86328e55390302f98
|
File details
Details for the file trytond_factories-7.4.0-py3-none-any.whl.
File metadata
- Download URL: trytond_factories-7.4.0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16b3220a753a01dc34d56ac51cd54f09aeebffdc60de24b13f702aa0778edadc
|
|
| MD5 |
6c1a311cb120488148b3fd1ae6953c75
|
|
| BLAKE2b-256 |
6a9096e854b09427d81a685b7f1ab35a91493ac8c6bc650547b133a549924e5f
|