Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add unit test
  • Loading branch information
pblottiere authored and rldhont committed Apr 16, 2019
1 parent 7ebea90 commit f562b09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/python/test_qgsserver_request.py
Expand Up @@ -196,6 +196,11 @@ def _check_links(params, method='GET'):
_check_links(params)
_check_links(params, 'POST')

def test_add_parameters(self):
request = QgsServerRequest()
request.setParameter('FOOBAR', 'foobar')
self.assertEqual(request.parameter('FOOBAR'), 'foobar')


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

0 comments on commit f562b09

Please sign in to comment.