Skip to content

Commit

Permalink
remove results folder in tear down (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
boyang2022 authored Aug 17, 2022
1 parent 5f12d6d commit 3daed97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unittests/test_web_pages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import shutil
from pathlib import Path

from selenium import webdriver
Expand Down Expand Up @@ -36,6 +37,7 @@ def setup_class(self):

def teardown_class(self):
self.driver.close()
shutil.rmtree(self.aedt_tester.results_path)

def test_title(self):
assert self.driver.title == "just_winding_221"
Expand Down Expand Up @@ -107,6 +109,7 @@ def setup_class(self):

def teardown_class(self):
self.driver.close()
shutil.rmtree(self.aedt_tester.results_path)

def test_projects_order(self):
project_names = ["01_voltage_control", "19", "2019R1", "expression_excitation", "just_winding"]
Expand Down

0 comments on commit 3daed97

Please sign in to comment.