@@ -67,21 +67,22 @@ def test_example_submodel_storing(self) -> None:
6767 self .assertNotIn (example_submodel , self .identifiable_store )
6868
6969 def test_check_directory (self ) -> None :
70- # Erzwinge einen nicht-existierenden Ordner (lösche setUp-Ergebnis)
70+ # Make sure the test directory does not exist at the beginning of the test
7171 if os .path .exists (store_path ):
7272 shutil .rmtree (store_path )
7373
74- # Ohne create=True muss ein FileNotFoundError geworfen werden
74+ # If create=False, check_directory should raise a FileNotFoundError,
75+ # if the directory does not exist
7576 with self .assertRaises (FileNotFoundError ) as cm :
7677 self .identifiable_store .check_directory (create = False )
7778 expected_error = "The given directory ({}) does not exist" .format (store_path )
7879 self .assertEqual (expected_error , str (cm .exception ))
7980
80- # Mit create=True muss der Ordner erfolgreich erstellt werden
81+ # If create=True, check_directory should create the directory if it does not exist
8182 self .identifiable_store .check_directory (create = True )
8283 self .assertTrue (os .path .exists (store_path ))
8384
84- # Wenn der Ordner existiert, darf create=False keinen Fehler mehr werfen
85+ # If the directory exists, create=False should not raise an error
8586 self .identifiable_store .check_directory (create = False )
8687
8788 def test_iterating (self ) -> None :
0 commit comments