- 19 May, 2024 18 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
for same reason as the xhtml_style version, there is no problem with having more than one listbox, see d2dedca3 (core: remove useless log in Base_callDialogMethod, 2020-07-03)
-
Carlos Ramos Carreño authored
The test testCMFActivity.TestCMFActivity.test_onErrorCallback was failing because some weak references were not dropped. The reason was that _DequeueMessageException was declared as global and it kept a traceback including the variables pointed by the weak references, preventing their garbage collection. This was fixed by using a class for the _DequeueMessageException instead of a singleton, and creating a new instance on every raise.
-
Jérome Perrin authored
This test assumed that activating a method with a string of length `n+x` as argument would be serialized in `x` more bytes that activating the same method with a string of length `n` as argument, which is only true for protocol 0 for multiple reasons ( short strings and long strings are serialized differently, "frames" are used with protocol 5) and db.string_literal seems to introduce a difference. Change the test to mock Message.dump to produce longer dumps instead of relying on this assumption.
-
Jérome Perrin authored
_resultForDoCleanups no longer exists on python3, getting the status of a test in teardown is very different accross python versions ( see https://stackoverflow.com/q/4414234 ) and just executing this code when the test failed only has the problem that a test method may count as two failures or errors, which is after all not a big problem.
-
Jérome Perrin authored
-
Jérome Perrin authored
This prevents one failing test to make all subsequent tests to fail
-
Jérome Perrin authored
this is removed from python3, it was not so useful here either
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
-
Jérome Perrin authored
use sys.maxsize, see discussion on nexedi/erp5!1751 (comment 203735)
-
Jérome Perrin authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
assertCountEqual is the new python3 name. Implement this in backportUnittest.py and also move the existing similar patches (assertRaisesRegex and assertRegex).
-
Jérome Perrin authored
This should not happens, but if this happens we should not just return in the middle of the loop, because this returned value is not used, so we would just silently edit partially.
-
Jérome Perrin authored
The first commit of this merge request was introduced for zope4py3 branch but it revealed issues on py2 as well, i.e. we don't have roles in auto-generated tester methods. ``` ====================================================================== FAIL: test_method_protection (testSecurity.TestSecurity) This test will list all implicitly Public methods in any objects in ZODB. ---------------------------------------------------------------------- Traceback (most recent call last): File "/(SR)/parts/erp5/Products/ERP5/tests/testSecurity.py", line 113, in test_method_protection self.fail(message) AssertionError: The following 7 methods have a docstring but have no security assertions. /(SR)/parts/erp5/product/ERP5Form/PreferenceTool.py:65 isPreferredVcsPushMode /srv/slapgrid/slappart19/t/eiy/soft/8a7759fd7b65b20d9f87713605745d05/parts/erp5/product/ERP5Type/Accessor/AcquiredProperty.py:217 hasTelephoneValidationState /(SR)/parts/erp5/product/ERP5Type/Accessor/Base.py:219 hasViewFormIdList /(SR)/parts/erp5/product/ERP5Type/Accessor/Constant.py:94 isWebDocumentType /(SR)/parts/erp5/product/ERP5Type/Accessor/Content.py:224 hasImage /(SR)/parts/erp5/product/ERP5Type/Accessor/ContentProperty.py:283 hasImageWidthList /(SR)/parts/erp5/product/ERP5Type/Accessor/Translation.py:233 hasFrTranslatedTitle ---------------------------------------------------------------------- ``` See merge request nexedi/erp5!1911
-
- 17 May, 2024 1 commit
-
-
Jérome Perrin authored
If a transaction is selected but instead of having accounts as source/destination on lines it acquires the organisation set as source/destination on the transaction, this causes an AttributeError getGapList when trying to use this organisation as an account. To fix this, adjust the getMovementHistoryList parameters to select only lines using accounts, by passing node_uid, which is O(n) on the number of accounts, but the number of accounts is not supposed to be too large and other reports also do this assumption.
-
- 16 May, 2024 1 commit
-
-
Jérome Perrin authored
-
- 15 May, 2024 3 commits
-
-
Romain Courteaud authored
-
Jérome Perrin authored
- move the logic of uploading to WebDAV server here instead of the generated bin/runUnitTest wrapper - run a new `coverage_report` which will - download all coverage data from WebDAV server - combine the data - run html report, saved in log folder - print text output in the text output. This `coverage_report` test waits for other tests to finish uploading data, we could extend test node distributor to distribute this test at the end.
-
Jérome Perrin authored
See merge request !1933
-
- 14 May, 2024 8 commits
-
-
Léo-Paul Géneau authored
See merge request !1903
-
Léo-Paul Géneau authored
Move `spawnDrone` function (where user code is evaluated) and rename used variables to avoid conflicts with the variables used by the user. Previously if an user would have assign a value to `i` without declaring the variable first, it would not have thrown any error as `i` was already existing in the execution scope.
-
Léo-Paul Géneau authored
Even if null speed only makes sense for VTOL vehicules, it is a required testing feature as long as there is no dedicated API.
-
Léo-Paul Géneau authored
Loop interval is the time in milliseconds between 2 executions of the onUpdate function of the user script as well as the periodicity to send messages to the swarm (which means updating telemetry values). As this is something we can set in SlapOS mostly to handle bandwith usage, this must not be linked to the time delta used to update drone position in the simulation.
-
Léo-Paul Géneau authored
-
Léo-Paul Géneau authored
-
Léo-Paul Géneau authored
Introduce `_callSetTargetCommand` function to regroup contraints on command calls. Commands like `takeOff` and `land` should have such constraints and therefore use `_internal_setTargetCoordinates` directly.
-
Léo-Paul Géneau authored
Timeout feature was broken by 2f7689d1 . Add timeout check in tests.
-
- 13 May, 2024 1 commit
-
-
Jérome Perrin authored
-
- 12 May, 2024 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
- str() because in ERP5JS the duration are directly serialized to json, which is not allowed. - int() to have a second level precision, which is more readable.
-
- 10 May, 2024 1 commit
-
-
Jérome Perrin authored
-
- 09 May, 2024 5 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
this is not used and cause a SyntaxWarning
-