Example Odoo module to show off how to mock Odoo registries
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
odoo_mocks
.gitignore
LICENSE
README.md

README.md

Using Patching For Faster Odoo Tests

Example Odoo module to show off how to patch Odoo registries (http://colinwren.is/patching-out-registries-in-odoo-tests.html)

Based on Odoo version 8

Test Times

Run One:

  • test_demo: Ran 2 tests in 0.025s
  • test_mock: Ran 2 tests in 0.002s
  • test_setup: Ran 2 tests in 0.354s

Run Two:

  • test_demo: Ran 2 tests in 0.033s
  • test_mock: Ran 2 tests in 0.001s
  • test_setup: Ran 2 tests in 0.359s

Run Three:

  • test_demo: Ran 2 tests in 0.034s
  • test_mock: Ran 2 tests in 0.002s
  • test_setup: Ran 2 tests in 0.354s

Averages:

  • test_demo: 0.030s
  • test_mock: 0.002s
  • test_setup: 0.355s