Skip to content

Releases: camptocamp/oerpscenario

0.9

26 Apr 13:44
Compare
Choose a tag to compare

Fixes

  • unicode handling of errors
  • Fixed signature issue on phrase I update web.base.url with full url "{url}"
  • Fixed an always passing check in phrase I create monthly periods on the fiscal year with reference "{fy_ref}"

Improvements

  • Add a new phrase to force translations
  • Adapt phrase to use settings menu wizards in v9, it now accept base menu name, full path name or xml id as parameter

0.8

28 Oct 12:08
Compare
Choose a tag to compare
0.8

Fixes

  • CSV import is now done using context
  • Do not try to delete already deleted objects with sentence "I delete it"
  • Do not fail when db password is empty

Improvements

  • A new phrase to add implied_ids on res.groups
  • Change some tools step decorators (sql query, python code and csv import) to be able to call them with other step keyword than Given
  • 4 new phrases to set web.base.url and freeze it
  • Improve database creation to set admin login password from config file
  • 2 new phrases to set options in settings menus
  • Multiple improvements in CSV import in perf and new phrases to set various options.
  • tolerate csv with header and no further lines

0.7

21 Jan 11:07
Compare
Choose a tag to compare
0.7
  • CSV import results are Checked
  • Fix missing erppeek import
  • Drop to pdb only when BEHAVE_DEBUG_ON_ERROR is set
  • Create db have a "find or create" option
  • various bug fixes

0.6 Behave 1.2.4 compatibiltiy

28 Aug 13:18
Compare
Choose a tag to compare

This version brings OERPScenario compatibility with behave 1.2.4.

Things to change in your features and steps:

  1. the tools which are defined in support/tools.py are no longer available in
    the globals() of your step definitions, so you need to import them manually:

    from support.tools import model, puts, set_trace, assert_equal

There is also a shortcut available:

from support import *
  1. There has been a change in the way the ctx.feature.filename attribute is
    managed. If your step definitions use this variable, e.g. to get a path to a
    data directory to load files, you will need to adapt. For the record the
    patch applied to the basic step definitions is:

    === modified file 'features/steps/tools.py'
    --- features/steps/tools.py 2014-08-27 13:46:19 +0000
    +++ features/steps/tools.py 2014-08-28 06:41:58 +0000
    @@ -38,9 +38,9 @@
    @given('"{model_name}" is imported from CSV "{csvfile}" using delimiter "{sep}"')
    def impl(ctx, model_name, csvfile, sep=","):
    tmp_path = ctx.feature.filename.split(os.path.sep)

    • tmp_path = tmp_path[1: tmp_path.index('features')] + ['data', csvfile]
    • tmp_path = tmp_path[: tmp_path.index('features')] + ['data', csvfile]
      tmp_path = [str(x) for x in tmp_path]
    • path = os.path.join('/', *tmp_path)
    • path = os.path.join(*tmp_path)
      assert os.path.exists(path)
      data = csv.reader(open(path, 'rb'), delimiter=str(sep))
      head = data.next()
  2. If you step definitions used the helper functions from dsl.py to parse
    domain from table data for instance, you need to import them. They were
    extracted to a new module dsl_helper to ease things and avoid a mess with
    duplicate step definitions:

    from dsl_helpers import (parse_domain,
    build_search_domain,
    parse_table_values,
    )

0.5 Context support in DSL

28 Aug 13:18
Compare
Choose a tag to compare
phrase to set context