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
trytond_factories-7.2.0.tar.gz
(22.3 kB
view details)
Built Distribution
File details
Details for the file trytond_factories-7.2.0.tar.gz
.
File metadata
- Download URL: trytond_factories-7.2.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cfb4a4bdb347afd1c165531613d0ea693f9909e4eb53accbcd06b26220591a2 |
|
MD5 | 299560717f7fd8888ddb11e87d9da5a7 |
|
BLAKE2b-256 | f8d2cd96c36b56d1fafd51aa3b484068d51969aba09befecf866229f9d18ca64 |
File details
Details for the file trytond_factories-7.2.0-py3-none-any.whl
.
File metadata
- Download URL: trytond_factories-7.2.0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd013528cac88818ed1cdee6b50d2dfd5b801f476b0d7312e93058bbb6c32e4a |
|
MD5 | c104642a2e8bf8ef710ef6e3951ae4a8 |
|
BLAKE2b-256 | 216aee59730441276d37de9cc14f29cb4099e6c414667ca0e629a97ab4a8d6af |