Skip to content

Commit ce6ea18

Browse files
committedJun 11, 2018
Dox and indentation updates
1 parent a3d6b98 commit ce6ea18

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed
 

‎python/core/auto_generated/qgsproject.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ Make sure that this is only called when all layers are not in edit mode.
601601

602602
QgsTransactionGroup *transactionGroup( const QString &providerKey, const QString &connString );
603603
%Docstring
604-
Get a transaction group from a provider key and connection string.
604+
Returns the matching transaction group from a provider key and connection string.
605605

606606
Returns None if a matching transaction group is not available.
607607

‎src/core/qgsproject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
585585
QMap< QPair< QString, QString>, QgsTransactionGroup *> transactionGroups() SIP_SKIP;
586586

587587
/**
588-
* Get a transaction group from a provider key and connection string.
588+
* Returns the matching transaction group from a provider key and connection string.
589589
*
590590
* Returns nullptr if a matching transaction group is not available.
591591
*

‎tests/src/python/test_qgspostgrestransaction.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,18 @@ def setUpClass(cls):
4040
if 'QGIS_PGTEST_DB' in os.environ:
4141
cls.dbconn = os.environ['QGIS_PGTEST_DB']
4242
# Create test layer
43-
cls.vl_b = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."books" sql=', 'books', 'postgres')
44-
cls.vl_a = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."authors" sql=', 'authors', 'postgres')
43+
cls.vl_b = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."books" sql=', 'books',
44+
'postgres')
45+
cls.vl_a = QgsVectorLayer(cls.dbconn + ' sslmode=disable key=\'pk\' table="qgis_test"."authors" sql=',
46+
'authors', 'postgres')
4547

4648
QgsProject.instance().addMapLayer(cls.vl_b)
4749
QgsProject.instance().addMapLayer(cls.vl_a)
4850

4951
cls.relMgr = QgsProject.instance().relationManager()
5052

51-
assert(cls.vl_a.isValid())
52-
assert(cls.vl_b.isValid())
53+
assert (cls.vl_a.isValid())
54+
assert (cls.vl_b.isValid())
5355

5456
def startTransaction(self):
5557
"""
@@ -104,5 +106,6 @@ def test_transactionsGroup(self):
104106
self.assertIsNone(noTg)
105107
self.rollbackTransaction()
106108

109+
107110
if __name__ == '__main__':
108111
unittest.main()

0 commit comments

Comments
 (0)