test_Atlas_dockwidget.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # coding=utf-8
  2. """DockWidget test.
  3. .. note:: This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. """
  8. __author__ = 'vrobel.jan@seznam.cz'
  9. __date__ = '2019-02-15'
  10. __copyright__ = 'Copyright 2019, jan vrobel'
  11. import unittest
  12. from PyQt5.QtGui import QDockWidget
  13. from Atlas_dockwidget import AtlasDockWidget
  14. from utilities import get_qgis_app
  15. QGIS_APP = get_qgis_app()
  16. class AtlasDockWidgetTest(unittest.TestCase):
  17. """Test dockwidget works."""
  18. def setUp(self):
  19. """Runs before each test."""
  20. self.dockwidget = AtlasDockWidget(None)
  21. def tearDown(self):
  22. """Runs after each test."""
  23. self.dockwidget = None
  24. def test_dockwidget_ok(self):
  25. """Test we can click OK."""
  26. pass
  27. if __name__ == "__main__":
  28. suite = unittest.makeSuite(AtlasDialogTest)
  29. runner = unittest.TextTestRunner(verbosity=2)
  30. runner.run(suite)