FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit e878957e authored by L. Bower's avatar L. Bower
Browse files

updating advisory test

parent f55dce10
No related branches found
No related tags found
No related merge requests found
import copy
import glob
import os
import unittest
......@@ -67,6 +68,29 @@ class TestAdvisory(unittest.TestCase):
self.assertTrue(ea_file_exists)
self.assertTrue(eth_file_exists)
def test_standard_run_input_images_produced(self):
east_africa_image_wildcard = os.path.join(TestAdvisory.TEST_OUT_PATH, TestAdvisory.TEST_JOB_DIR,
"images",
"*eastafrica*.png")
ethiopia_image_wildcard = os.path.join(TestAdvisory.TEST_OUT_PATH, TestAdvisory.TEST_JOB_DIR,
"images",
"*ethiopia*.png")
africa_image_count: int = len(glob.glob(east_africa_image_wildcard))
ethiopia_image_count: int = len(glob.glob(ethiopia_image_wildcard))
self.assertEqual(3, africa_image_count)
self.assertEqual(3, ethiopia_image_count)
def test_standard_run_input_shapefiles_produced(self):
east_africa_image_wildcard = os.path.join(TestAdvisory.TEST_OUT_PATH, TestAdvisory.TEST_JOB_DIR,
"images",
"*eastafrica*.shp")
africa_image_count: int = len(glob.glob(east_africa_image_wildcard))
self.assertEqual(3, africa_image_count)
if __name__ == '__main__':
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment