Skip to content

Commit

Permalink
fix : functions tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Nov 7, 2023
1 parent fbb3e9a commit a8b5aa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opem/Test/test_Functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@
>>> file2 = CSV_Init(OutputParamsKeys=["1","2","3"], OutputParams={"1":"1", "2":"2", "3":"3"}, Title="CSV_Test", Name="CSV_Test2", Folder=os.path.join("CSV_Folder1", "CSV_Folder2"))
>>> file1.close()
>>> file2.close()
>>> sorted(os.listdir(os.path.join("CSV_Folder1", "CSV_Folder2"))) == ["CSV_Test.csv", "CSV_Test2.csv"]
>>> sorted(os.listdir(os.path.join("CSV_Folder1", "CSV_Folder2", "CSV_Test"))) == ["CSV_Test.csv", "CSV_Test2.csv"]
True
>>> file1 = HTML_Init(Title="HTML_Test", Name="HTML_Test", Folder=os.path.join("HTML_Folder1", "HTML_Folder2"))
>>> file2 = HTML_Init(Title="HTML_Test", Name="HTML_Test2", Folder=os.path.join("HTML_Folder1", "HTML_Folder2"))
>>> file1.close()
>>> file2.close()
>>> sorted(os.listdir(os.path.join("HTML_Folder1", "HTML_Folder2"))) == ["HTML_Test.html", "HTML_Test2.html"]
>>> sorted(os.listdir(os.path.join("HTML_Folder1", "HTML_Folder2", "HTML_Test"))) == ["HTML_Test.html", "HTML_Test2.html"]
True
>>> file1 = Output_Init(InputDict={"1":"1"}, Title="OPEM_Test", Name="OPEM_Test", Folder=os.path.join("OPEM_Folder1", "OPEM_Folder2"))
>>> file2 = Output_Init(InputDict={"1":"1"}, Title="OPEM_Test", Name="OPEM_Test2", Folder=os.path.join("OPEM_Folder1", "OPEM_Folder2"))
>>> file1.close()
>>> file2.close()
>>> sorted(os.listdir(os.path.join("OPEM_Folder1", "OPEM_Folder2"))) == ["OPEM_Test.opem", "OPEM_Test2.opem"]
>>> sorted(os.listdir(os.path.join("OPEM_Folder1", "OPEM_Folder2", "OPEM_Test"))) == ["OPEM_Test.opem", "OPEM_Test2.opem"]
True
>>> shutil.rmtree("CSV_Folder1")
>>> shutil.rmtree("HTML_Folder1")
Expand Down

0 comments on commit a8b5aa0

Please sign in to comment.