An error occurred fetching the project authors.
  1. 17 Feb, 2023 1 commit
  2. 19 Dec, 2022 1 commit
    • Jérome Perrin's avatar
      *: rewrite with lib2to3.fixes.fix_asserts and ad-hoc assertin · 2e366054
      Jérome Perrin authored
      The add-hoc assertin filter:
      
      --
      
      from typing import List
      
      import lib2to3
      
      from lib2to3.fixer_base import BaseFix
      from lib2to3.fixer_util import Comma, Name
      
      class FixAssertIn(BaseFix):
      
        PATTERN = """
            power< any+ trailer< '.' meth=("assertTrue" | "assertFalse")>
            trailer< '('
              comparison< (needle=any ( comp_op<'not' 'in'> | 'in' ) haystack=any) >
            ')' > >
        """
      
        def transform(self, node: lib2to3.pytree.Node,
                      results: List[lib2to3.pytree.Base]):
      
          needle = results['needle']
          haystack = results['haystack']
          meth = results["meth"][0]
      
          method_map = {True: 'assertIn', False: 'assertNotIn'}
          method_in = meth.value == 'assertTrue'
          if 'not' in str(needle.parent.children[1]):
            method_in = not method_in
          meth.replace(Name(method_map[method_in], prefix=meth.prefix))
      
          needle.parent.children = [needle, Comma(), haystack]
      2e366054
  3. 21 Sep, 2022 1 commit
  4. 07 Mar, 2022 2 commits
  5. 11 Jun, 2021 1 commit
  6. 29 Apr, 2021 1 commit
  7. 21 Dec, 2020 1 commit
  8. 28 Sep, 2020 1 commit
    • Jérome Perrin's avatar
      testXHTML: fix business template installation order · 08b48c6f
      Jérome Perrin authored
      This test (just like all legacy filesystem tests) does not use business
      template dependencies but just install business templates in the order from
      getBusinessTemplateList, but business templates are not listed in correct
      order.
      
      It use to be OK (which warnings), but erp5_test_result can no longer be
      installed without erp5_project, so review installation order to install
      erp5_project earlier.
      08b48c6f
  9. 09 Sep, 2020 1 commit
  10. 20 Jul, 2020 1 commit
  11. 17 Jul, 2020 1 commit
  12. 19 Mar, 2020 1 commit
  13. 11 Mar, 2020 1 commit
    • Jérome Perrin's avatar
      trade: remove Delivery Cell view action · 526dae31
      Jérome Perrin authored
      Delivery Cell portal type is not allowed anywhere in erp5_trade.
      
      Testing the view action with html test from erp5_trade fail, because the
      test cannot find a valid container to create delivery cell, as
      delivery_movement_causality_interaction_workflow expects that this
      delivery cell is created within a delivery, it fails with:
      
            File "Script (Python)", line 1, in DeliveryMovement_calculate
              state_change['object'].getExplanationValue().Delivery_calculate()
          AttributeError: 'NoneType' object has no attribute 'Delivery_calculate'
      526dae31
  14. 22 Jan, 2020 1 commit
  15. 28 Nov, 2019 1 commit
    • Jérome Perrin's avatar
      testXHTML: test portal types also from tools · 56e16adc
      Jérome Perrin authored
      Some portal types such as Business Template were not tested by testXHTML
      because this tests started by modules and recursively tests views based
      on allowed content types. Because of this approach, types that are not
      created in a module but in a tool were never tested.
      
      With unittest, the only way to dynamically add test methods to a class
      is to generate a test class in test_suite function. At this stage, the
      ERP5 site is not created yet, so the test had to introspects business
      templates XML.
      
      This now uses a slightly different approach, instead of finding modules
      and chain of allowed content types from business template XML, we only
      use business template to introspect the list of actions.
      The lookup of the appropriate containers is no longer done before setup
      by static analysis of business templates XML, but later once the site is
      created, by dynamic analysis of the modules and allowed content types on
      the running ERP5 site during the test method.
      If we don't find a chain of portal types, we create the test document in
      portal_trash, a tool without filter of content types.
      
      This way, we can test all views of all portal types. This revealed a few
      problems:
       - we need developer role to create components in portal_components, for
      this we add developer role to the current user.
       - Delivery Cell portal type looks not used, there are no container
      accepting it. We don't test delivery cell views for this reason.
       - VCS view on business template needs preferences and working copy
      setup. We just mark this test as expected failure for now.
       - Solver Decision has a form conditionnaly displayed when there's a
      relation to a solver, but this test does not evaluate action conditions
      and does not allow to call a script (that would made it possible to
      modify the document so that the condition is true). For now we also
      mark this as expected failure.
      56e16adc
  16. 25 Oct, 2019 1 commit
  17. 04 Sep, 2019 1 commit
  18. 10 Jul, 2019 1 commit
    • Arnaud Fontaine's avatar
      erp5_ace_editor: Removed. · 94a179a6
      Arnaud Fontaine authored
      * Not updated for many years (CodeMirror has since replaced it).
      * There are now 2 other better source code editors (CodeMirror and Monaco).
      94a179a6
  19. 02 Jan, 2019 1 commit
  20. 24 Oct, 2018 1 commit
  21. 01 Oct, 2018 2 commits
  22. 31 Jul, 2018 1 commit
  23. 05 Jul, 2018 1 commit
    • Ayush Tiwari's avatar
      [erp5_core]: Use Diff Tool to Beautify History Tab for ERP5 objects · 2f121c19
      Ayush Tiwari authored
      The Diff view in new UI will be using IFrames to display the diff.
      
      Also, add changes in tests:
      
      erp5_ui_test: Update history test according to use of diff gadget
      erp5_web_renderjs_ui_test: Update tests according to new Diff view for Historical Revisions
      testXHTML: Add Historical Comparison View to the list of listbox with no selection name
      testXHTML: Simplify test_html_file and include way to ignore single html file
      2f121c19
  24. 08 Jun, 2018 3 commits
  25. 15 Apr, 2018 1 commit
  26. 30 Mar, 2018 3 commits
  27. 26 Oct, 2017 1 commit
  28. 25 Oct, 2017 2 commits
  29. 17 Oct, 2017 3 commits
  30. 20 Sep, 2017 1 commit
  31. 23 Dec, 2016 1 commit