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.0.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.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

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

Hashes for trytond_factories-7.4.0.tar.gz
Algorithm Hash digest
SHA256 0a011b27c3e8cd6127a8c6425c3fad8a06b71e6569f9f568795b4d64d70526c2
MD5 3dfb6bc3a5df680ae43c809751730b15
BLAKE2b-256 1b8a5080a441655cc7da4cdc65341c0a80f4555f16ae7dc86328e55390302f98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trytond_factories-7.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16b3220a753a01dc34d56ac51cd54f09aeebffdc60de24b13f702aa0778edadc
MD5 6c1a311cb120488148b3fd1ae6953c75
BLAKE2b-256 6a9096e854b09427d81a685b7f1ab35a91493ac8c6bc650547b133a549924e5f

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