Skip to content
Snippets Groups Projects
Select Git revision
  • 5e8fdbe06bed07e810a6ca7d9329322e9f666711
  • main default protected
  • ravaflow3g
  • docs
  • v0.1.2
  • v0.1.1
  • v0.1.0
7 results

test_clear_temp_files.py

Blame
  • test_clear_temp_files.py 1.02 KiB
    import os
    import shutil
    import pytest
    
    @pytest.mark.order(-1)
    def test_clear_temp_files():
    
        dir_test = os.path.abspath(os.path.join(__file__, '../'))
    
        temp_dirs = [
            os.path.join(dir_test, 'temp_add'), # test_run_simulator
            os.path.join(dir_test, 'temp_run_add'), # test_run_simulator
            os.path.join(dir_test, 'temp_run_mass_point_model'), # test_run_mass_point_model
            os.path.join(dir_test, 'temp_ravaflow_1'), # test_ravaflow24
            os.path.join(dir_test, 'temp_ravaflow_2'), # test_ravaflow24
            os.path.join(dir_test, 'temp_run_ravaflow'), # test_run_ravaflow24
            os.path.join(dir_test, 'temp_ravaflow_results'), # test_run_ravaflow24
            os.path.join(dir_test, 'temp_metropolis_hastings'), # test_metropolis_hasting
            os.path.join(dir_test, 'temp_bayes_inference'), # test_bayes_inference
            os.path.join(dir_test, 'temp_active_learning') # test_active_learning
        ]
    
        for temp_dir in temp_dirs:
            if os.path.exists(temp_dir):
                shutil.rmtree(temp_dir)