@@ -97,23 +97,19 @@ def test_postprocess(self) -> None:
9797
9898 def test_postprocess_v51 (self ) -> None :
9999 # test gzipped and zipping of additional files for lobster v5.1
100- LOBSTER_TEST_FILES = {
101- * VASP_OUTPUT_FILES , * LOBSTEROUTPUT_FILES , * FW_FILES
102- }. difference ({ "POSCAR.lobster" , "bandOverlaps.lobster" }) # these files are not in the directory
103-
100+ LOBSTER_TEST_FILES = {* VASP_OUTPUT_FILES , * LOBSTEROUTPUT_FILES , * FW_FILES }. difference (
101+ { "POSCAR.lobster" , "bandOverlaps.lobster" }
102+ ) # these files are not in the directory
103+
104104 with cd (os .path .join (test_files_lobster4 )):
105105 with ScratchDir ("." , copy_from_current_on_enter = True ):
106106 shutil .copy ("lobsterin" , "lobsterin.orig" )
107107 v = LobsterJob ("hello" , gzipped = True , add_files_to_gzip = VASP_OUTPUT_FILES )
108108 v .postprocess ()
109- assert all (
110- os .path .isfile (f"{ file } .gz" ) for file in LOBSTER_TEST_FILES
111- )
112- assert os .path .isfile (f"{ file } .gz" )
109+ assert all (os .path .isfile (f"{ file } .gz" ) for file in LOBSTER_TEST_FILES )
113110
114111 with ScratchDir ("." , copy_from_current_on_enter = True ):
115112 shutil .copy ("lobsterin" , "lobsterin.orig" )
116113 v = LobsterJob ("hello" , gzipped = False , add_files_to_gzip = VASP_OUTPUT_FILES )
117114 v .postprocess ()
118115 assert all (os .path .isfile (file ) for file in LOBSTER_TEST_FILES )
119-
0 commit comments