1. 21 Nov, 2022 11 commits
  2. 17 Nov, 2022 9 commits
  3. 16 Nov, 2022 2 commits
    • Jérome Perrin's avatar
      *: add some missing security declaration on component code · 8be39d34
      Jérome Perrin authored
      This does not seem to be an actual problem because the object is
      declared protected, but these missing security declarations make
      testSecurity fail.
      8be39d34
    • Jérome Perrin's avatar
      testSecurity: don't skip portal_components in test_method_protection · e300e3f6
      Jérome Perrin authored
      We have been using `filter(lambda x:'/erp5/' in x[0], error_list)` as a
      way to see only missing declarations from ERP5 code, but only ERP5
      filesystem code contains /erp5/ in the filenames, in-ZODB components
      filename is set to something like <portal_components/document.erp5.FTPConnector>
      
      Change to also check methods for which filename contains <portal_components
      and also to print the ignored methods
      e300e3f6
  4. 10 Nov, 2022 4 commits
  5. 08 Nov, 2022 12 commits
  6. 07 Nov, 2022 2 commits
    • Jérome Perrin's avatar
      hal_json_style: adjust transaction interactions in the test · 52b25e02
      Jérome Perrin authored
       - the transaction is aborted in tearDown, no need to abort
        explicitly, for same reason if we want to delete documents, we
        need to explicitly commit (see TestERP5Person_getHateoas_mode_search)
       - simulate decorator should not commit the transaction to keep this
        semantic of abort by default, which keeps test isolated.
      52b25e02
    • Jérome Perrin's avatar
      hal_json_style: fix double translation of worklist message · d7f6bf12
      Jérome Perrin authored
      There was a regression with 45c03413 (hal_json_style: prevent a
      translation of worklist with document count, 2021-05-10), the title
      of the worklist was translated twice. This was supposed to be
      catched by the test, by checking that the mocked gettext had only
      one call for "Draft to Validate", assuming that the translation of
      "Draft to Validate" was "Draft to Validate" and that a double
      translation would cause this to be translated twice, but because of
      a side effect of another test inserting a translation for
      "Draft to Validate", this problem was not noticed.
      
      This fixes the double translation and adjust the test to not depend
      on the actual content of message catalog.
      d7f6bf12