Commit 3eb99ca7 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Unittests are now also executable on Windows.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 77c33d51
Pipeline #14861 passed with stages
in 5 minutes and 9 seconds
......@@ -307,5 +307,7 @@ class CompleteWorkflow_INTER1_S2A_S2A(unittest.TestCase):
CR.show_matchWin(interactive=True, after_correction=False)
CR.show_image_footprints()
# if __name__ == '__main__':
# unittest.main(argv=['first-arg-is-ignored'],exit=False, verbosity=2)
if __name__ == '__main__':
import nose2
nose2.main()
......@@ -121,11 +121,6 @@ class CompleteWorkflow_INTER1_S2A_S2A(unittest.TestCase):
CRL.calculate_spatial_shifts()
# if __name__ == '__main__':
# unittest.main(argv=['first-arg-is-ignored'],exit=False, verbosity=2)
#
# suite = unittest.TestLoader().loadTestsFromTestCase(eval("CompleteWorkflow_INTER1_S2A_S2A"))
# alltests = unittest.TestSuite(suite)
#
# # Part 2: Saving the results of each testsuite and the query for the job.status in individual variables.
# testResult = unittest.TextTestRunner(verbosity=2).run(alltests)
if __name__ == '__main__':
import nose2
nose2.main()
......@@ -119,3 +119,8 @@ class Test_Tie_Point_Grid(unittest.TestCase):
outpath = os.path.join(tmpdir, 'X_SHIFT_M__interpolated.bsq')
self.TPG.to_Raster_using_Kriging(attrName='X_SHIFT_M', fName_out=outpath)
self.assertTrue(os.path.isfile(outpath))
if __name__ == '__main__':
import nose2
nose2.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment