Commit 7534bde0 authored by Alessio Molinari's avatar Alessio Molinari
Browse files

sql related functions are now properly exported to Python

parent d7f8b9a3
Pipeline #218738 passed with stage
in 6 minutes and 30 seconds
......@@ -154,6 +154,7 @@ foreach(INCLUDE_DIR ${PYSIDE_INCLUDE_DIRS})
list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtWebChannel")
list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtWebEngineCore")
list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtWebEngineWidgets")
list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtSql")
endforeach()
set(PyFalkon_SRCS
......
......@@ -14,6 +14,9 @@ class BasicTest(unittest.TestCase):
window = Falkon.MainApplication.instance().createWindow(Falkon.Qz.BW_NewWindow)
self.assertIsNotNone(window)
def test_sql_availability(self):
self.assertTrue(hasattr(Falkon.SqlDatabase, 'database'))
suite = unittest.defaultTestLoader.loadTestsFromTestCase(BasicTest)
if unittest.TextTestRunner().run(suite).failures:
......
......@@ -2,6 +2,7 @@
<typesystem package="PyFalkon">
<load-typesystem name="typesystem_webenginecore.xml" generate="no"/>
<load-typesystem name="typesystem_webenginewidgets.xml" generate="no"/>
<load-typesystem name="typesystem_sql.xml" generate="no"/>
<inject-code class="native" position="beginning">
#include &lt;pythonplugin.h&gt;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment