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:
parent
d7f8b9a3d3
commit
7534bde02d
@ -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 <pythonplugin.h>
|
||||
|
Loading…
Reference in New Issue
Block a user