Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
tests.python.test_study_locker.TestStudyLocker Class Reference

Public Member Functions

 setup_method (self)
 
 teardown_method (self)
 
 test_non_existing_study_dir (self, tmp_path)
 
 test_lock_study_create_lock_file (self)
 
 test_study_with_empty_locker_file_can_be_locked (self, tmp_path)
 
 test_fail_to_unlock_already_locked_dir (self)
 
 test_locker_file_contains_multiple_lines_raises_exception (self)
 
 test_locker_file_with_one_non_valid_line_raises_exception (self)
 
 test_locker_file_corrupted_pid_is_not_an_int_raises_exception (self)
 
 test_after_unlock_the_study_can_be_locked_again (self)
 
 test_unlock_fails_if_study_was_locked_by_another_pid (self)
 

Static Public Member Functions

 lock_study (Path study_dir)
 

Public Attributes

 study_dir
 
 lock_file
 

The documentation for this class was generated from the following file: