Skip to main content

pytest plugin to test OpenERP modules

Project description

py.test plugin for testing OpenERP modules

Usage

install/update via:

easy_install -U pytest-oerp # or preferably
pip install -U pytest-oerp

and then type:

py.test --oerp-server-path=<path to openerp server/bin directory>

to load OpenERP. You will need to have openerp configured and a test database (if it is not named test pass –oerp-db with the name). look at the examples for more information.

Todo

Tons of stuff but a tentative list would be:

  • have a simplified openerp api (eg. oerp[‘res.company’].search(1) )

  • more tests (always a good thing)

  • don’t depend on mock (great lib but probably unnecessary for this)

  • redirect logger

  • only load openerp if a test needs it

  • addini in pytest so you can configure with pytest.ini

  • lettuce support, but this will probably go in another package

  • make openerp better (that is always our idea)

Notes

The repository of this plugin is at http://github.com/santagada/pytest-oerp

For more info on py.test see http://pytest.org

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

pytest-oerp-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file pytest-oerp-0.1.1.tar.gz.

File metadata

  • Download URL: pytest-oerp-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-oerp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58c3be5786dc9d0845d7b411b3ba5d235e25cd54c56156acfb3e6a168110bf5e
MD5 6aa4683bca5e5fd0a69a616671718def
BLAKE2b-256 d9b0a974f16dd663ce1f40c2ad5768ee395f07e0e2eb63fac0d708cf373827a5

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