<div dir="ltr"><div>Hi,</div><div><br></div><div>I have setup some plugins with unittests using Docker.</div><div>I have followed the documentation : <a href="https://github.com/qgis/QGIS/tree/master/.docker">https://github.com/qgis/QGIS/tree/master/.docker</a></div><div>to run them locally or/and on Travis.<br></div><div><br></div><div>This tests is working well using the QGIS 3.4 docker image :</div><div><br></div><div>class TestEditionDialog(unittest.TestCase):<br><br>    def test_atlas_dialog(self):<br>        """Test atlas dialog."""<br>        layer = QgsVectorLayer(plugin_test_data_path('lines.geojson'), 'lines', 'ogr')<br>        QgsProject.instance().addMapLayer(layer)<br>        self.assertTrue(layer.isValid())</div><div><br></div><div>But as soon as I start using a QGIS 3.10 docker image, QGIS crash.</div><div><br></div><div>test_atlas_dialog (lizmap.test.test_dialog_edition.TestEditionDialog)<br>Test atlas dialog. ... QGIS died on signal 11Test atlas dialog. ... QGIS died on signal 11<br>Finished running test qgis_plugin_tools.infrastructure.test_runner.test_package (codes: IS_DEAD=0 IS_FAILED=1 IS_PASSED=1).<br>root@1c7939c428c6:/tests_directory/lizmap# <br></div><div><br></div><div>By commenting the code, I noticed it's the `QgsProject.instance()` which trigger the crash.</div><div>It tried quickly to replace by:</div><div><br></div><div>        layer = QgsVectorLayer(plugin_test_data_path('lines.geojson'), 'lines', 'ogr')<br>        project = QgsProject()<br>        project.addMapLayer(layer)<br>        self.assertTrue(layer.isValid())</div><div><br></div><div>It's working, the test is OK. But then, all my tests using a QgsMapLayerComboBox are failing because the combobox is empty.</div><div><br></div><div>Does anyone confirm this kind of behaviour in their tests? Is-it a bug or is-it another way to do tests using this docker image?</div><div><br></div><div>Regards,</div><div>Etienne<br></div></div>