Skip to content

Commit

Permalink
Test the new methods in QgsRelation
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jan 11, 2021
1 parent b645145 commit 7feb073
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/src/python/test_qgsrelation.py
Expand Up @@ -197,6 +197,15 @@ def testValidRelationAfterChangingStyle(self):
valid = t.relation().isValid()
self.assertTrue(valid)

def test_polymorphicRelationId(self):
rel = QgsRelation()

self.assertEqual(rel.polymorphicRelationId(), '')

rel.setPolymorphicRelationId('poly_rel_id')

self.assertEqual(rel.polymorphicRelationId(), 'poly_rel_id')


if __name__ == '__main__':
unittest.main()

0 comments on commit 7feb073

Please sign in to comment.