mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Dox and indentation updates
This commit is contained in:
parent
a3d6b9899b
commit
ce6ea18280
@ -601,7 +601,7 @@ Make sure that this is only called when all layers are not in edit mode.
|
||||
|
||||
QgsTransactionGroup *transactionGroup( const QString &providerKey, const QString &connString );
|
||||
%Docstring
|
||||
Get a transaction group from a provider key and connection string.
|
||||
Returns the matching transaction group from a provider key and connection string.
|
||||
|
||||
Returns None if a matching transaction group is not available.
|
||||
|
||||
|
@ -585,7 +585,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
|
||||
QMap< QPair< QString, QString>, QgsTransactionGroup *> transactionGroups() SIP_SKIP;
|
||||
|
||||
/**
|
||||
* Get a transaction group from a provider key and connection string.
|
||||
* Returns the matching transaction group from a provider key and connection string.
|
||||
*
|
||||
* Returns nullptr if a matching transaction group is not available.
|
||||
*
|
||||
|
@ -40,16 +40,18 @@ class TestQgsPostgresTransaction(unittest.TestCase):
|
||||
if 'QGIS_PGTEST_DB' in os.environ:
|
||||
cls.dbconn = os.environ['QGIS_PGTEST_DB']
|
||||
# Create test layer
|
||||
cls.vl_b = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."books" sql=', 'books', 'postgres')
|
||||
cls.vl_a = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."authors" sql=', 'authors', 'postgres')
|
||||
cls.vl_b = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."books" sql=', 'books',
|
||||
'postgres')
|
||||
cls.vl_a = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."authors" sql=',
|
||||
'authors', 'postgres')
|
||||
|
||||
QgsProject.instance().addMapLayer(cls.vl_b)
|
||||
QgsProject.instance().addMapLayer(cls.vl_a)
|
||||
|
||||
cls.relMgr = QgsProject.instance().relationManager()
|
||||
|
||||
assert(cls.vl_a.isValid())
|
||||
assert(cls.vl_b.isValid())
|
||||
assert (cls.vl_a.isValid())
|
||||
assert (cls.vl_b.isValid())
|
||||
|
||||
def startTransaction(self):
|
||||
"""
|
||||
@ -104,5 +106,6 @@ class TestQgsPostgresTransaction(unittest.TestCase):
|
||||
self.assertIsNone(noTg)
|
||||
self.rollbackTransaction()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user