You are here: Home / LBN / Up2date / Business / BastionLinux 36 / python3-trytond-factories-7.2.0-1.lbn36.noarch

python3-trytond-factories-7.2.0-1.lbn36.noarch

Package Attributes
RPM  python3-trytond-factories-7.2.0-1.lbn36.noarch.rpm Architecture  noarch Size  121327 Created  2024/11/20 13:36:55 UTC
Package Specification
Summary A collection of opinionated factories for common Tryton modules
Group Unspecified
License ZPL
Home Page https://pypi.org/project/trytond-factories
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)

Requires
(python3.10dist(trytond) >= 7.2 with python3.10dist(trytond) < 7.3)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
python3.10dist(factory-trytond)  
Provides
python-trytond-factories
python3-trytond-factories
python3.10-trytond-factories
python3.10dist(trytond-factories)
python3dist(trytond-factories)
Obsoletes
python-trytond-factories

Document Actions