def test_01_dependencies(self):
        global asistente_ladm_col

        unload_qgis_model_baker()
        valid = asistente_ladm_col.is_plugin_version_valid()
        self.assertFalse(valid)

        import_qgis_model_baker()
        valid = asistente_ladm_col.is_plugin_version_valid()
        self.assertTrue(valid)
    def test_01_dependencies(self):
        global asistente_ladm_col

        unload_qgis_model_baker()
        valid = is_plugin_version_valid(
            QGIS_MODEL_BAKER_PLUGIN_NAME,
            QGIS_MODEL_BAKER_MIN_REQUIRED_VERSION,
            QGIS_MODEL_BAKER_EXACT_REQUIRED_VERSION)
        self.assertFalse(valid)

        import_qgis_model_baker()
        valid = is_plugin_version_valid(
            QGIS_MODEL_BAKER_PLUGIN_NAME,
            QGIS_MODEL_BAKER_MIN_REQUIRED_VERSION,
            QGIS_MODEL_BAKER_EXACT_REQUIRED_VERSION)
        self.assertTrue(valid)
Exemple #3
0
 def tearDownClass(cls):
     unload_qgis_model_baker()
Exemple #4
0
 def tearDownClass(cls):
     print("INFO: Closing connection and unloading model baker")
     cls.db_pg.conn.close()
     cls.db_mssql.conn.close()
     unload_qgis_model_baker()
 def tearDownClass(cls):
     print("INFO: Closing open db connections; unloading Model Baker")
     cls.db_gpkg.conn.close()
     unload_qgis_model_baker()
 def tearDownClass(cls):
     print("INFO: Unloading Model Baker")
     unload_qgis_model_baker()
Exemple #7
0
 def tearDownClass(cls):
     print("INFO: Closing open connections to databases")
     cls.db_pg.conn.close()
     unload_qgis_model_baker()
Exemple #8
0
 def tearDownClass(cls):
     print('Closing connection and unloading Model Baker...')
     cls.db_gpkg.conn.close()
     unload_qgis_model_baker()