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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pytest-oerp-0.1.tar.gz
Algorithm Hash digest
SHA256 fcfef0d4ba04bf63f02b6e89677d00516b7e465ab28088f0afafbb2d7e724ed2
MD5 49fed2adb431ff98267d151d1f429367
BLAKE2b-256 2ab30f6b4fbf7b1c4d438a82cfb1f8d7aa9166ea2957a6566c42dea3ccc20c16

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