![]() |
Belle II Software development
|
Public Member Functions | |
setUp (self) | |
test_dict_setup (self) | |
test_job_json_serialise (self) | |
test_status (self) | |
test_path_object_conversion (self) | |
test_subjob_splitting (self) | |
test_input_sandbox_copy (self) | |
tearDown (self) | |
Public Attributes | |
job1 = job1 | |
first job | |
job2_dict = job_dict | |
job dictionary | |
job2 = Job(name2, job_dict=job_dict) | |
Set up job from a dictionary. | |
maxDiff = None | |
If this test fails you will need to see the diff of a large dictionary. | |
UnitTest for the `caf.backends.Job` class
Definition at line 34 of file test_backends.py.
setUp | ( | self | ) |
Create useful objects for each test and the teardown
Definition at line 39 of file test_backends.py.
tearDown | ( | self | ) |
Removes files/directories that were created during these tests
Definition at line 211 of file test_backends.py.
test_dict_setup | ( | self | ) |
Test dictionary setup
Definition at line 75 of file test_backends.py.
test_input_sandbox_copy | ( | self | ) |
Does the copy of files/directories for the input sandbox work correctly?
Definition at line 183 of file test_backends.py.
test_job_json_serialise | ( | self | ) |
Test job with json serialisation
Definition at line 87 of file test_backends.py.
test_path_object_conversion | ( | self | ) |
Make sure that the two ways of setting up Job objects correctly converted attributes to be Paths instead of strings.
Definition at line 112 of file test_backends.py.
test_status | ( | self | ) |
The Jobs haven't been run so they should be in the 'init' status. They also shouldn't throw exceptions due to missing result objects.
Definition at line 96 of file test_backends.py.
test_subjob_splitting | ( | self | ) |
Test the creation of SubJobs and assignment of input data files via splitter classes.
Definition at line 134 of file test_backends.py.
job1 = job1 |
first job
Definition at line 52 of file test_backends.py.
job2 = Job(name2, job_dict=job_dict) |
Set up job from a dictionary.
Definition at line 70 of file test_backends.py.
job2_dict = job_dict |
job dictionary
Definition at line 68 of file test_backends.py.
maxDiff = None |
If this test fails you will need to see the diff of a large dictionary.
Definition at line 80 of file test_backends.py.