Skip to main content

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


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.4.2.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trytond_factories-7.4.2-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file trytond_factories-7.4.2.tar.gz.

File metadata

  • Download URL: trytond_factories-7.4.2.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

Hashes for trytond_factories-7.4.2.tar.gz
Algorithm Hash digest
SHA256 9770da6ae93cb86a7933daf64fe4e346f37052ac5eab50de1424eafbe7e5773b
MD5 8d42305ca544df00a49e817324e90078
BLAKE2b-256 1f9f2cd1508eac21806e0c3a3cfdd6d90745ee6196f05ea815072ca85187ef26

See more details on using hashes here.

File details

Details for the file trytond_factories-7.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for trytond_factories-7.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1e82cc36c3d29a7d857a7d484f5cd032ce050535df22125599a5dd7b97359bb
MD5 b6f17a4c21801d243eecaa8e2212eaca
BLAKE2b-256 24feef1b71429bc3d6aa2775bbe9abd00ce6bca296771b184e85b29533ad9077

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page