mockito 5 workaround
fix JAPC SET with mockito 5
Merge request reports
Activity
Please register or sign in to reply
fix JAPC SET with mockito 5
3 | 3 | |
4 | 4 | import pytest |
5 | 5 | |
6 | from pyjapc.tests.conftest import japc_set | |
|
118 | 118 | yield mock |
119 | 119 | mock.resetToDefault() |
120 | 120 | mock.mockNoService() |
121 | ||
122 | @pytest.fixture | |
123 | def japc_set(jvm): | |
124 | cern = jp.JPackage('cern') | |
125 | JapcUtils = cern.japc.core.util.JapcUtils | |
|
This works nicely. There is clearly a problem with JNI, JPype and Mockito 5, but this at least moves things forwards to allow us to have functional testing again.
assigned to @mihostet
mentioned in commit c47e93c6
merged