QgisAlgorithmsTest5.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. """
  2. ***************************************************************************
  3. QgisAlgorithmTests2.py
  4. ---------------------
  5. Date : January 2016
  6. Copyright : (C) 2016 by Matthias Kuhn
  7. Email : matthias@opengis.ch
  8. ***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************
  16. """
  17. __author__ = 'Matthias Kuhn'
  18. __date__ = 'January 2016'
  19. __copyright__ = '(C) 2016, Matthias Kuhn'
  20. import AlgorithmsTestBase
  21. import nose2
  22. import shutil
  23. import os
  24. import unittest
  25. from qgis.testing import start_app, QgisTestCase
  26. class TestQgisAlgorithms5(QgisTestCase, AlgorithmsTestBase.AlgorithmsTest):
  27. @classmethod
  28. def setUpClass(cls):
  29. start_app()
  30. from processing.core.Processing import Processing
  31. Processing.initialize()
  32. cls.cleanup_paths = []
  33. @classmethod
  34. def tearDownClass(cls):
  35. from processing.core.Processing import Processing
  36. Processing.deinitialize()
  37. for path in cls.cleanup_paths:
  38. shutil.rmtree(path)
  39. def test_definition_file(self):
  40. return 'qgis_algorithm_tests5.yaml'
  41. if __name__ == '__main__':
  42. nose2.main()