1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

sql related functions are now properly exported to Python

This commit is contained in:
Alessio Molinari 2022-08-15 13:48:30 +02:00
parent d7f8b9a3d3
commit 7534bde02d
3 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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:

View File

@ -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;