project_name
string
class_name
string
class_modifiers
string
class_implements
int64
class_extends
int64
function_name
string
function_body
string
cyclomatic_complexity
int64
NLOC
int64
num_parameter
int64
num_token
int64
num_variable
int64
start_line
int64
end_line
int64
function_index
int64
function_params
string
function_variable
string
function_return_type
string
function_body_line_type
string
function_num_functions
int64
function_num_lines
int64
outgoing_function_count
int64
outgoing_function_names
string
incoming_function_count
int64
incoming_function_names
string
lexical_representation
string
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
test_windows_long_path_exception_PosixOS
def test_windows_long_path_exception_PosixOS(self):mock_s3_client = MagicMock()mock_future = MagicMock()mock_transfer_manager = MagicMock()mock_transfer_manager.download.return_value = mock_futuremock_future.result.side_effect = Exception("Test exception")mock_lock = MagicMock()mock_collision_dict = MagicMock()file_pat...
1
23
1
88
0
1,869
1,894
1,869
self
[]
None
{"Assign": 9, "Expr": 1}
9
26
9
["MagicMock", "MagicMock", "MagicMock", "Exception", "MagicMock", "MagicMock", "ManifestPathv2023_03_03", "self.download_file_and_check_exception", "pytest.mark.skipif"]
0
[]
The function (test_windows_long_path_exception_PosixOS) defined within the public class called TestFullDownload.The function start at line 1869 and ends at 1894. It contains 23 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
download_file_and_check_exception
def download_file_and_check_exception(self,file_path,local_path,mock_collision_dict,mock_lock,mock_s3_client,mock_transfer_manager,):with patch(f"{deadline.__package__}.job_attachments.download.get_s3_client",return_value=mock_s3_client,), patch(f"{deadline.__package__}.job_attachments.download.get_s3_transfer_manager"...
1
31
7
100
0
1,896
1,926
1,896
self,file_path,local_path,mock_collision_dict,mock_lock,mock_s3_client,mock_transfer_manager
[]
None
{"Assign": 1, "Expr": 3, "With": 2}
8
31
8
["patch", "patch", "patch", "pytest.raises", "download_file", "str", "mock_lock.assert_not_called", "mock_collision_dict.assert_not_called"]
0
[]
The function (download_file_and_check_exception) defined within the public class called TestFullDownload.The function start at line 1896 and ends at 1926. It contains 31 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [1896.0] and does not return any value. It declares 8.0 f...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
test_windows_long_path
def test_windows_long_path(self):mock_s3_client = MagicMock()mock_future = MagicMock()mock_transfer_manager = MagicMock()mock_transfer_manager.download.return_value = mock_futuremock_future.result.side_effect = Exception("Test exception")mock_lock = MagicMock()mock_collision_dict = MagicMock()file_path = ManifestPathv2...
1
23
1
88
0
1,932
1,957
1,932
self
[]
None
{"Assign": 9, "Expr": 1}
9
26
9
["MagicMock", "MagicMock", "MagicMock", "Exception", "MagicMock", "MagicMock", "ManifestPathv2023_03_03", "self.download_file_and_check_exception", "pytest.mark.skipif"]
0
[]
The function (test_windows_long_path) defined within the public class called TestFullDownload.The function start at line 1932 and ends at 1957. It contains 23 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and I...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
test_windows_long_path_UNC_notation_WindowsOS
def test_windows_long_path_UNC_notation_WindowsOS(self):(file_path,local_path,mock_collision_dict,mock_lock,mock_s3_client,mock_transfer_manager,) = self.setup_mocks_and_file_path()with patch(f"{deadline.__package__}.job_attachments.download.get_s3_client",return_value=mock_s3_client,), patch(f"{deadline.__package__}.j...
1
34
1
118
0
1,963
1,997
1,963
self
[]
None
{"Assign": 2, "Expr": 3, "With": 2}
11
35
11
["self.setup_mocks_and_file_path", "patch", "patch", "patch", "patch", "pytest.raises", "download_file", "str", "mock_lock.assert_not_called", "mock_collision_dict.assert_not_called", "pytest.mark.skipif"]
0
[]
The function (test_windows_long_path_UNC_notation_WindowsOS) defined within the public class called TestFullDownload.The function start at line 1963 and ends at 1997. It contains 34 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
setup_mocks_and_file_path
def setup_mocks_and_file_path(self):mock_s3_client = MagicMock()mock_future = MagicMock()mock_transfer_manager = MagicMock()mock_transfer_manager.download.return_value = mock_futuremock_future.result.side_effect = Exception("Test exception")mock_lock = MagicMock()mock_collision_dict = MagicMock()file_path = ManifestPat...
1
23
1
86
0
1,999
2,021
1,999
self
[]
Returns
{"Assign": 9, "Return": 1}
7
23
7
["MagicMock", "MagicMock", "MagicMock", "Exception", "MagicMock", "MagicMock", "ManifestPathv2023_03_03"]
0
[]
The function (setup_mocks_and_file_path) defined within the public class called TestFullDownload.The function start at line 1999 and ends at 2021. It contains 23 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 7.0 functions,...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
test_windows_long_path_UNC_notation_and_registry_WindowsOS
def test_windows_long_path_UNC_notation_and_registry_WindowsOS(self):(file_path,local_path,mock_collision_dict,mock_lock,mock_s3_client,mock_transfer_manager,) = self.setup_mocks_and_file_path()with patch(f"{deadline.__package__}.job_attachments.download.get_s3_client",return_value=mock_s3_client,), patch(f"{deadline._...
1
34
1
118
0
2,027
2,062
2,027
self
[]
None
{"Assign": 2, "Expr": 3, "With": 2}
11
36
11
["self.setup_mocks_and_file_path", "patch", "patch", "patch", "patch", "pytest.raises", "download_file", "str", "mock_lock.assert_not_called", "mock_collision_dict.assert_not_called", "pytest.mark.skipif"]
0
[]
The function (test_windows_long_path_UNC_notation_and_registry_WindowsOS) defined within the public class called TestFullDownload.The function start at line 2027 and ends at 2062. It contains 34 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any valu...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
_test_create_copy_long_path_scenario
def _test_create_copy_long_path_scenario(self, base_dir, long_base_name, expect_unc_prefix=False):"""Common test logic for CREATE_COPY long path scenarios.Tests that original path is not long but copy becomes long."""original_file = Path(base_dir) / f"{long_base_name}.txt"copy_file = Path(base_dir) / f"{long_base_name}...
3
80
4
378
0
2,064
2,170
2,064
self,base_dir,long_base_name,expect_unc_prefix
[]
None
{"AnnAssign": 1, "Assign": 17, "Expr": 2, "If": 2, "With": 1}
31
107
31
["Path", "Path", "len", "str", "len", "str", "ManifestPathv2023_03_03", "MagicMock", "MagicMock", "MagicMock", "MagicMock", "DefaultDict", "patch", "patch", "patch", "patch", "patch", "patch", "patch", "patch", "download_file", "str", "len", "len", "download_call.kwargs.get", "fileobj_path.startswith", "fileobj_path.re...
0
[]
The function (_test_create_copy_long_path_scenario) defined within the public class called TestFullDownload.The function start at line 2064 and ends at 2170. It contains 80 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [2064.0] and does not return any value. It declares 31...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
test_download_file_create_copy_becomes_long_path_windows
def test_download_file_create_copy_becomes_long_path_windows(self):"""Test that when CREATE_COPY conflict resolution creates a filename that becomes a Windows long path,download_file converts it to use the UNC prefix (\\?\\) format and successfully downloads the file."""# Create a path that's just under the Windows lim...
1
4
1
30
0
2,176
2,186
2,176
self
[]
None
{"Assign": 2, "Expr": 2}
2
11
2
["self._test_create_copy_long_path_scenario", "pytest.mark.skipif"]
0
[]
The function (test_download_file_create_copy_becomes_long_path_windows) defined within the public class called TestFullDownload.The function start at line 2176 and ends at 2186. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. ...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
test_download_file_create_copy_long_path_posix
def test_download_file_create_copy_long_path_posix(self, dir_multiplier, filename_len):"""Test that CREATE_COPY conflict resolution works correctly on POSIX systemswith long filenames and actually downloads the file.The variables have been decided such that they cross the max path length of 260They are different for Ma...
1
8
3
51
0
2,198
2,214
2,198
self,dir_multiplier,filename_len
[]
None
{"Assign": 3, "Expr": 2, "With": 1}
5
17
5
["tempfile.TemporaryDirectory", "Path", "self._test_create_copy_long_path_scenario", "pytest.mark.skipif", "pytest.mark.parametrize"]
0
[]
The function (test_download_file_create_copy_long_path_posix) defined within the public class called TestFullDownload.The function start at line 2198 and ends at 2214. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [2198.0] and does not return any value. It de...
aws-deadline_deadline-cloud
TestFullDownload
public
0
0
before_test
def before_test(self,request,create_s3_bucket: Callable[[str], None],farm_id: str,queue_id: str,default_queue: Queue,create_get_queue_response: Callable[[Queue], dict[str, Any]],manifest_version: ManifestVersion,):"""Setup the default queue and s3 bucket for all asset tests.Mark test with `no_setup` if you don't want t...
4
45
8
226
0
2,224
2,280
2,224
self,request,create_s3_bucket,farm_id,queue_id,default_job_attachment_s3_settings,default_queue,default_job,create_get_queue_response,create_get_job_response,manifest_version
[]
None
{"Assign": 7, "Expr": 9, "For": 4, "If": 1, "Return": 1}
23
73
23
["create_get_queue_response", "create_get_job_response", "create_s3_bucket", "resource", "boto3.Session", "s3.Bucket", "range", "bucket.upload_fileobj", "BytesIO", "range", "bucket.upload_fileobj", "BytesIO", "bucket.upload_fileobj", "BytesIO", "bucket.upload_fileobj", "BytesIO", "bucket.upload_fileobj", "BytesIO", "bu...
0
[]
The function (before_test) defined within the public class called TestFullDownload.The function start at line 2224 and ends at 2280. It contains 45 lines of code and it has a cyclomatic complexity of 4. It takes 8 parameters, represented as [2224.0] and does not return any value. It declares 23.0 functions, and It has...
aws-deadline_deadline-cloud
TestFullDownloadPrefixesWithSlashes
public
0
0
test_download_task_output_prefixes_with_slashes
def test_download_task_output_prefixes_with_slashes(self, farm_id, queue_id, tmp_path: Path, manifest_version: ManifestVersion):assert self.queue.jobAttachmentSettingsassert_download_task_output(self.queue.jobAttachmentSettings,farm_id,queue_id,tmp_path,expected_files={str(tmp_path): [tmp_path / "test1.txt",tmp_path / ...
1
20
5
78
0
2,282
2,301
2,282
self,farm_id,queue_id,tmp_path,manifest_version
[]
None
{"Expr": 1}
2
20
2
["assert_download_task_output", "str"]
0
[]
The function (test_download_task_output_prefixes_with_slashes) defined within the public class called TestFullDownloadPrefixesWithSlashes.The function start at line 2282 and ends at 2301. It contains 20 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [2282.0] and does not re...
aws-deadline_deadline-cloud
TestFullDownloadPrefixesWithSlashes
public
0
0
test_download_step_prefixes_with_slashes
def test_download_step_prefixes_with_slashes(self, farm_id, queue_id, tmp_path: Path, manifest_version: ManifestVersion):assert self.queue.jobAttachmentSettingsassert_download_step_output(self.queue.jobAttachmentSettings,farm_id,queue_id,tmp_path,expected_files={str(tmp_path): [tmp_path / "test1.txt",tmp_path / "test" ...
1
24
5
98
0
2,303
2,326
2,303
self,farm_id,queue_id,tmp_path,manifest_version
[]
None
{"Expr": 1}
2
24
2
["assert_download_step_output", "str"]
0
[]
The function (test_download_step_prefixes_with_slashes) defined within the public class called TestFullDownloadPrefixesWithSlashes.The function start at line 2303 and ends at 2326. It contains 24 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [2303.0] and does not return an...
aws-deadline_deadline-cloud
TestFullDownloadPrefixesWithSlashes
public
0
0
test_download_job_prefixes_with_slashes
def test_download_job_prefixes_with_slashes(self, farm_id, queue_id, tmp_path: Path, manifest_version: ManifestVersion):assert self.queue.jobAttachmentSettingsassert_download_job_output(self.queue.jobAttachmentSettings,farm_id,queue_id,tmp_path,expected_files={str(tmp_path): [tmp_path / "test1.txt",tmp_path / "test" / ...
1
30
5
128
0
2,328
2,357
2,328
self,farm_id,queue_id,tmp_path,manifest_version
[]
None
{"Expr": 1}
2
30
2
["assert_download_job_output", "str"]
0
[]
The function (test_download_job_prefixes_with_slashes) defined within the public class called TestFullDownloadPrefixesWithSlashes.The function start at line 2328 and ends at 2357. It contains 30 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [2328.0] and does not return any...
aws-deadline_deadline-cloud
public
public
0
0
test_ensure_paths_within_directory_posix_no_error
def test_ensure_paths_within_directory_posix_no_error(root_path: str, output_paths: list[str]):_ensure_paths_within_directory(root_path, output_paths)
1
2
2
20
0
2,375
2,376
2,375
root_path,output_paths
[]
None
{"Expr": 1}
3
2
3
["_ensure_paths_within_directory", "pytest.mark.skipif", "pytest.mark.parametrize"]
0
[]
The function (test_ensure_paths_within_directory_posix_no_error) defined within the public class called public.The function start at line 2375 and ends at 2376. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2375.0] and does not return any value. It declares ...
aws-deadline_deadline-cloud
public
public
0
0
test_ensure_paths_within_directory_posix_raises_error
def test_ensure_paths_within_directory_posix_raises_error(root_path: str, output_paths: list[str]):with pytest.raises((PathOutsideDirectoryError, ValueError)):_ensure_paths_within_directory(root_path, output_paths)
1
3
2
32
0
2,395
2,397
2,395
root_path,output_paths
[]
None
{"Expr": 1, "With": 1}
4
3
4
["pytest.raises", "_ensure_paths_within_directory", "pytest.mark.skipif", "pytest.mark.parametrize"]
0
[]
The function (test_ensure_paths_within_directory_posix_raises_error) defined within the public class called public.The function start at line 2395 and ends at 2397. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2395.0] and does not return any value. It decla...
aws-deadline_deadline-cloud
public
public
0
0
test_ensure_paths_within_directory_windows_no_error
def test_ensure_paths_within_directory_windows_no_error(root_path: str, output_paths: list[str]):_ensure_paths_within_directory(root_path, output_paths)
1
2
2
20
0
2,414
2,415
2,414
root_path,output_paths
[]
None
{"Expr": 1}
3
2
3
["_ensure_paths_within_directory", "pytest.mark.skipif", "pytest.mark.parametrize"]
0
[]
The function (test_ensure_paths_within_directory_windows_no_error) defined within the public class called public.The function start at line 2414 and ends at 2415. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2414.0] and does not return any value. It declare...
aws-deadline_deadline-cloud
public
public
0
0
test_ensure_paths_within_directory_windows_raises_error
def test_ensure_paths_within_directory_windows_raises_error(root_path: str, output_paths: list[str]):with pytest.raises((PathOutsideDirectoryError, ValueError)):_ensure_paths_within_directory(root_path, output_paths)
1
5
2
32
0
2,436
2,440
2,436
root_path,output_paths
[]
None
{"Expr": 1, "With": 1}
4
5
4
["pytest.raises", "_ensure_paths_within_directory", "pytest.mark.skipif", "pytest.mark.parametrize"]
0
[]
The function (test_ensure_paths_within_directory_windows_raises_error) defined within the public class called public.The function start at line 2436 and ends at 2440. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2436.0] and does not return any value. It dec...
aws-deadline_deadline-cloud
public
public
0
0
test_merge_asset_manifests
def test_merge_asset_manifests(test_manifest_one: dict, test_manifest_two: dict, merged_manifest: dict):"""Test that merging two manifests correctly overlays the 2nd on top of the 1st"""manifests = [decode_manifest(json.dumps(test_manifest_one)),decode_manifest(json.dumps(test_manifest_two)),]actual_merged_manifest = m...
1
9
3
58
2
2,443
2,456
2,443
test_manifest_one,test_manifest_two,merged_manifest
['actual_merged_manifest', 'manifests']
None
{"Assign": 2, "Expr": 1}
7
14
7
["decode_manifest", "json.dumps", "decode_manifest", "json.dumps", "merge_asset_manifests", "decode_manifest", "json.dumps"]
0
[]
The function (test_merge_asset_manifests) defined within the public class called public.The function start at line 2443 and ends at 2456. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [2443.0] and does not return any value. It declares 7.0 functions, and It ...
aws-deadline_deadline-cloud
public
public
0
0
test_merge_asset_manifests_empty
def test_merge_asset_manifests_empty():"""Test that merging an empty list returns None"""assert merge_asset_manifests([]) is None
1
2
0
13
0
2,459
2,463
2,459
[]
None
{"Expr": 1}
1
5
1
["merge_asset_manifests"]
0
[]
The function (test_merge_asset_manifests_empty) defined within the public class called public.The function start at line 2459 and ends at 2463. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It h...
aws-deadline_deadline-cloud
public
public
0
0
test_merge_asset_manifest_single
def test_merge_asset_manifest_single(test_manifest_one: dict):"""Test that merging a single manifest returns the same manifest"""manifest = decode_manifest(json.dumps(test_manifest_one))actual_merged_manifest = merge_asset_manifests([manifest])assert actual_merged_manifest == manifest
1
4
1
31
2
2,466
2,473
2,466
test_manifest_one
['manifest', 'actual_merged_manifest']
None
{"Assign": 2, "Expr": 1}
3
8
3
["decode_manifest", "json.dumps", "merge_asset_manifests"]
0
[]
The function (test_merge_asset_manifest_single) defined within the public class called public.The function start at line 2466 and ends at 2473. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It...
aws-deadline_deadline-cloud
public
public
0
0
on_downloading_files
def on_downloading_files(progress: ProgressReportMetadata) -> bool:return True
1
2
1
11
0
2,476
2,477
2,476
progress
[]
bool
{"Return": 1}
0
2
0
[]
0
[]
The function (on_downloading_files) defined within the public class called public.The function start at line 2476 and ends at 2477. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_download_files_from_manifests.download_file
def download_file(*args):nonlocal downloaded_filesdownloaded_files.append(args[0].path)return (40, Path(args[0].path))
1
4
1
33
0
2,495
2,498
2,495
null
[]
None
null
0
0
0
null
0
null
The function (test_download_files_from_manifests.download_file) defined within the public class called public.The function start at line 2495 and ends at 2498. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_download_files_from_manifests
def test_download_files_from_manifests(test_manifest_one: dict,test_manifest_two: dict,):manifests: list[BaseAssetManifest] = [decode_manifest(json.dumps(test_manifest_one)),decode_manifest(json.dumps(test_manifest_two)),]merged_manifest = merge_asset_manifests(manifests)assert merged_manifestdownloaded_files: list[str...
1
23
2
126
1
2,480
2,511
2,480
test_manifest_one,test_manifest_two
['merged_manifest']
Returns
{"AnnAssign": 2, "Assign": 1, "Expr": 2, "Return": 1, "With": 1}
12
32
12
["decode_manifest", "json.dumps", "decode_manifest", "json.dumps", "merge_asset_manifests", "downloaded_files.append", "Path", "patch", "patch", "download_files_from_manifests", "boto3.Session", "sorted"]
0
[]
The function (test_download_files_from_manifests) defined within the public class called public.The function start at line 2480 and ends at 2511. It contains 23 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2480.0], and this function return a value. It declares 12.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_handle_existing_vfs_no_mount_returns
def test_handle_existing_vfs_no_mount_returns(test_manifest_one: dict):"""Test that handling an existing manifest for a non existent mount returns the manifest"""manifest = decode_manifest(json.dumps(test_manifest_one))with patch(f"{deadline.__package__}.job_attachments.download.VFSProcessManager.is_mount",return_value...
1
11
1
58
2
2,514
2,527
2,514
test_manifest_one
['manifest', 'result_manifest']
None
{"Assign": 2, "Expr": 2, "With": 1}
6
14
6
["decode_manifest", "json.dumps", "patch", "handle_existing_vfs", "Path", "mock_is_mount.assert_called_once_with"]
0
[]
The function (test_handle_existing_vfs_no_mount_returns) defined within the public class called public.The function start at line 2514 and ends at 2527. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 6.0 function...
aws-deadline_deadline-cloud
public
public
0
0
test_handle_existing_vfs_success
def test_handle_existing_vfs_success(test_manifest_one: dict, test_manifest_two: dict, merged_manifest: dict):"""Test that handling an existing manifest for a mount which exists attempts to merge the manifests andshut down the mount"""manifest_one = decode_manifest(json.dumps(test_manifest_one))manifest_two = decode_ma...
1
31
3
160
5
2,530
2,564
2,530
test_manifest_one,test_manifest_two,merged_manifest
['manifest_two', 'result_manifest', 'manifest_one', 'session_path', 'merged_decoded']
None
{"Assign": 5, "Expr": 5, "With": 1}
16
35
16
["decode_manifest", "json.dumps", "decode_manifest", "json.dumps", "decode_manifest", "json.dumps", "Path", "patch", "patch", "patch", "patch", "handle_existing_vfs", "mock_is_mount.assert_called_once_with", "mock_get_manifest_path.assert_called_once_with", "mock_decode_manifest.assert_called_once_with", "mock_kill_pro...
0
[]
The function (test_handle_existing_vfs_success) defined within the public class called public.The function start at line 2530 and ends at 2564. It contains 31 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [2530.0] and does not return any value. It declares 16.0 functions, ...
aws-deadline_deadline-cloud
public
public
0
0
test_mount_vfs_from_manifests
def test_mount_vfs_from_manifests(test_manifest_one: dict, test_manifest_two: dict, merged_manifest: dict):"""Test that handling an existing manifest for a mount which exists attempts to merge the manifests andshut down the mount"""manifest_one = decode_manifest(json.dumps(test_manifest_one))manifest_two = decode_manif...
1
69
3
368
11
2,571
2,651
2,571
test_manifest_one,test_manifest_two,merged_manifest
['temp_dir_path', 'manifest_path', 'manifest_permissions', 'temp_dir', 'manifests_by_root', 'fs_permissions', 'manifest_two', 'logs_path', 'manifest_one', 'merged_decoded', 'cache_path']
None
{"Assign": 11, "Expr": 6, "With": 1}
38
81
38
["decode_manifest", "json.dumps", "decode_manifest", "json.dumps", "decode_manifest", "json.dumps", "tempfile.TemporaryDirectory", "Path", "PosixFileSystemPermissionSettings", "PosixFileSystemPermissionSettings", "patch", "patch", "patch", "patch", "mount_vfs_from_manifests", "boto3.Session", "os.path.isdir", "os.path....
0
[]
The function (test_mount_vfs_from_manifests) defined within the public class called public.The function start at line 2571 and ends at 2651. It contains 69 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [2571.0] and does not return any value. It declares 38.0 functions, and...
aws-deadline_deadline-cloud
public
public
0
0
test_get_new_copy_file_path_file_collisions
def test_get_new_copy_file_path_file_collisions(tmp_path: Path) -> None:"""Tests that copying files append the correct number"""existing_files = [tmp_path / "test_col.txt",tmp_path / "test_col (1).txt",tmp_path / "test_col (2).txt",tmp_path / "test_col (3).txt",tmp_path / "test_skip.txt",tmp_path / "test_skip (1).txt",...
5
43
1
267
5
2,654
2,702
2,654
tmp_path
['results', 'input_paths', 'test_lock', 'existing_files', 'expected_files']
None
{"AnnAssign": 1, "Assign": 5, "Expr": 3, "For": 2, "With": 1}
18
49
18
["open", "str", "f.write", "set", "set", "tmp_path.glob", "path.is_file", "Lock", "DefaultDict", "results.append", "_get_new_copy_file_path", "set", "set", "str", "str", "str", "str", "str"]
0
[]
The function (test_get_new_copy_file_path_file_collisions) defined within the public class called public.The function start at line 2654 and ends at 2702. It contains 43 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 18.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_inputs_string
def test_glob_inputs_string(glob_config_file):"""Test case to test glob config as a string."""glob: strwith open(glob_config_file) as f:glob = f.read()glob_config = _process_glob_inputs(glob)assert "include.file" in glob_config.include_globassert "exclude.file" in glob_config.exclude_glob
1
7
1
42
2
10
19
10
glob_config_file
['glob', 'glob_config']
None
{"AnnAssign": 1, "Assign": 2, "Expr": 1, "With": 1}
3
10
3
["open", "f.read", "_process_glob_inputs"]
0
[]
The function (test_glob_inputs_string) defined within the public class called public.The function start at line 10 and ends at 19. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 func...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_inputs_file
def test_glob_inputs_file(glob_config_file):"""Test case to test glob config as a file."""glob_config = _process_glob_inputs(glob_config_file)assert "include.file" in glob_config.include_globassert "exclude.file" in glob_config.exclude_glob
1
4
1
24
1
22
28
22
glob_config_file
['glob_config']
None
{"Assign": 1, "Expr": 1}
1
7
1
["_process_glob_inputs"]
0
[]
The function (test_glob_inputs_file) defined within the public class called public.The function start at line 22 and ends at 28. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function...
aws-deadline_deadline-cloud
public
public
0
0
test_bad_glob_string
def test_bad_glob_string():"""Test case to test a bad glob config will raise an exception."""glob: str = "This is not a json"with pytest.raises(NonValidInputError):_process_glob_inputs(glob)
1
4
0
22
0
31
37
31
[]
None
{"AnnAssign": 1, "Expr": 2, "With": 1}
2
7
2
["pytest.raises", "_process_glob_inputs"]
0
[]
The function (test_bad_glob_string) defined within the public class called public.The function start at line 31 and ends at 37. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functio...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_path_default
def test_glob_path_default(test_glob_folder: str):"""Test case to glob all files."""globbed_files: List[str] = _glob_paths(path=test_glob_folder)# There are 4 filesassert len(globbed_files) == 4assert os.path.join(os.sep, test_glob_folder, "include.txt") in globbed_filesassert os.path.join(os.sep, test_glob_folder, "ex...
1
7
1
100
0
40
51
40
test_glob_folder
[]
None
{"AnnAssign": 1, "Expr": 1}
6
12
6
["_glob_paths", "len", "os.path.join", "os.path.join", "os.path.join", "os.path.join"]
0
[]
The function (test_glob_path_default) defined within the public class called public.The function start at line 40 and ends at 51. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_path_default_include
def test_glob_path_default_include(test_glob_folder: str):"""Test case to glob all files."""globbed_files: List[str] = _glob_paths(path=test_glob_folder, include=["*include.txt", "*/*include.txt"])# There are 2 filesassert len(globbed_files) == 2assert os.path.join(os.sep, test_glob_folder, "include.txt") in globbed_fi...
1
7
1
72
0
54
65
54
test_glob_folder
[]
None
{"AnnAssign": 1, "Expr": 1}
4
12
4
["_glob_paths", "len", "os.path.join", "os.path.join"]
0
[]
The function (test_glob_path_default_include) defined within the public class called public.The function start at line 54 and ends at 65. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_path_exclude
def test_glob_path_exclude(test_glob_folder: str):"""Test case to glob all files and exclude some."""globbed_files: List[str] = _glob_paths(path=test_glob_folder, exclude=["*exclude.txt", "*/*exclude.txt"])# There are 4 filesassert len(globbed_files) == 2assert os.path.join(os.sep, test_glob_folder, "include.txt") in g...
1
7
1
72
0
68
79
68
test_glob_folder
[]
None
{"AnnAssign": 1, "Expr": 1}
4
12
4
["_glob_paths", "len", "os.path.join", "os.path.join"]
0
[]
The function (test_glob_path_exclude) defined within the public class called public.The function start at line 68 and ends at 79. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_path_include_subdir
def test_glob_path_include_subdir(test_glob_folder: str):"""Test case to glob files only from the include sub directory."""globbed_files: List[str] = _glob_paths(path=test_glob_folder, include=["nested/**"])# There are 2 filesassert len(globbed_files) == 2assert os.path.join(os.sep, test_glob_folder, "nested", "nested_...
1
5
1
72
0
82
91
82
test_glob_folder
[]
None
{"AnnAssign": 1, "Expr": 1}
4
10
4
["_glob_paths", "len", "os.path.join", "os.path.join"]
0
[]
The function (test_glob_path_include_subdir) defined within the public class called public.The function start at line 82 and ends at 91. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4....
aws-deadline_deadline-cloud
public
public
0
0
test_glob_path_include_nonexistent
def test_glob_path_include_nonexistent(test_glob_folder: str):"""Test case to glob files only from the include sub directory which does not exist."""globbed_files: List[str] = _glob_paths(path=test_glob_folder, include=["nonexistent/**"])# There are 0 filesassert len(globbed_files) == 0
1
3
1
34
0
94
101
94
test_glob_folder
[]
None
{"AnnAssign": 1, "Expr": 1}
2
8
2
["_glob_paths", "len"]
0
[]
The function (test_glob_path_include_nonexistent) defined within the public class called public.The function start at line 94 and ends at 101. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It ...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_path_exclude_subdir
def test_glob_path_exclude_subdir(test_glob_folder: str):"""Test case to glob files and exclude sub directory."""globbed_files: List[str] = _glob_paths(path=test_glob_folder, exclude=["nested/**"])# There are 2 filesassert len(globbed_files) == 2assert os.path.join(os.sep, test_glob_folder, "include.txt") in globbed_fi...
1
5
1
68
0
104
113
104
test_glob_folder
[]
None
{"AnnAssign": 1, "Expr": 1}
4
10
4
["_glob_paths", "len", "os.path.join", "os.path.join"]
0
[]
The function (test_glob_path_exclude_subdir) defined within the public class called public.The function start at line 104 and ends at 113. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has ...
aws-deadline_deadline-cloud
public
public
0
0
test_glob_path_exclude_nonexistent
def test_glob_path_exclude_nonexistent(test_glob_folder: str):"""Test case to glob files only exclude sub directory which does not exist."""globbed_files: List[str] = _glob_paths(path=test_glob_folder, exclude=["nonexistent/**"])# There are 2 filesassert len(globbed_files) == 4
1
3
1
34
0
116
123
116
test_glob_folder
[]
None
{"AnnAssign": 1, "Expr": 1}
2
8
2
["_glob_paths", "len"]
0
[]
The function (test_glob_path_exclude_nonexistent) defined within the public class called public.The function start at line 116 and ends at 123. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It...
aws-deadline_deadline-cloud
TestModels
public
0
0
test_get_host_path_format_string
def test_get_host_path_format_string(self, sys_os: str, expected_output: str):"""Tests that the expected OS string is returned"""with patch("sys.platform", sys_os):assert PathFormat.get_host_path_format_string() == expected_output
1
3
3
30
0
24
29
24
self,sys_os,expected_output
[]
None
{"Expr": 1, "With": 1}
3
6
3
["patch", "PathFormat.get_host_path_format_string", "pytest.mark.parametrize"]
0
[]
The function (test_get_host_path_format_string) defined within the public class called TestModels.The function start at line 24 and ends at 29. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [24.0] and does not return any value. It declares 3.0 functions, and ...
aws-deadline_deadline-cloud
TestModels
public
0
0
test_storage_profile_operating_system_family_case
def test_storage_profile_operating_system_family_case(self, input: str, output: StorageProfileOperatingSystemFamily) -> None:"""Tests that the correct enum types are created regardless of input string casing."""assert StorageProfileOperatingSystemFamily(input) == output
1
4
3
23
0
45
51
45
self,input,output
[]
None
{"Expr": 1}
2
7
2
["StorageProfileOperatingSystemFamily", "pytest.mark.parametrize"]
0
[]
The function (test_storage_profile_operating_system_family_case) defined within the public class called TestModels.The function start at line 45 and ends at 51. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [45.0] and does not return any value. It declares 2....
aws-deadline_deadline-cloud
TestModels
public
0
0
test_storage_profile_operating_system_raises_type_error
def test_storage_profile_operating_system_raises_type_error(self, input):"""Tests that a ValueError is raised when a non-valid string is given.I.e. our case-insensitivity isn't causing false-positives."""with pytest.raises(ValueError):StorageProfileOperatingSystemFamily(input)
1
3
2
20
0
54
60
54
self,input
[]
None
{"Expr": 2, "With": 1}
3
7
3
["pytest.raises", "StorageProfileOperatingSystemFamily", "pytest.mark.parametrize"]
0
[]
The function (test_storage_profile_operating_system_raises_type_error) defined within the public class called TestModels.The function start at line 54 and ends at 60. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [54.0] and does not return any value. It decla...
aws-deadline_deadline-cloud
TestModels
public
0
0
test_path_mapping_rules
def test_path_mapping_rules(self):"""Test rule construction and hashing the source attributes"""path_mapping = PathMappingRule(source_path_format="posix",source_path="/tmp",destination_path="/local/home/test/output",)assert "a0271fe0c8b1c1f99b82b442cd878122" == path_mapping.get_hashed_source_path(HashAlgorithm.XXH128)
1
9
1
34
0
62
73
62
self
[]
None
{"Assign": 1, "Expr": 1}
2
12
2
["PathMappingRule", "path_mapping.get_hashed_source_path"]
0
[]
The function (test_path_mapping_rules) defined within the public class called TestModels.The function start at line 62 and ends at 73. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 ...
aws-deadline_deadline-cloud
TestJobAttachmentS3SettingsModel
public
0
0
test_job_attachment_setting_root_path
def test_job_attachment_setting_root_path(self, input: str, output: JobAttachmentS3Settings):"""Test Job Attachment S3 Settings from and to S3 root path"""assert output == JobAttachmentS3Settings.from_root_path(input)assert input == output.to_root_path()
1
3
3
31
0
84
89
84
self,input,output
[]
None
{"Expr": 1}
5
6
5
["JobAttachmentS3Settings.from_root_path", "output.to_root_path", "pytest.mark.parametrize", "JobAttachmentS3Settings", "JobAttachmentS3Settings"]
0
[]
The function (test_job_attachment_setting_root_path) defined within the public class called TestJobAttachmentS3SettingsModel.The function start at line 84 and ends at 89. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [84.0] and does not return any value. It d...
aws-deadline_deadline-cloud
TestJobAttachmentS3SettingsModel
public
0
0
test_job_attachment_setting_from_path_error
def test_job_attachment_setting_from_path_error(self):"""Test Job Attachment S3 Settings from malformed S3 root path"""with pytest.raises(MalformedAttachmentSettingError):JobAttachmentS3Settings.from_root_path("s3BucketOnly")
1
3
1
20
0
91
96
91
self
[]
None
{"Expr": 2, "With": 1}
2
6
2
["pytest.raises", "JobAttachmentS3Settings.from_root_path"]
0
[]
The function (test_job_attachment_setting_from_path_error) defined within the public class called TestJobAttachmentS3SettingsModel.The function start at line 91 and ends at 96. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. I...
aws-deadline_deadline-cloud
TestJobAttachmentS3SettingsModel
public
0
0
test_job_attachment_setting_root_uri
def test_job_attachment_setting_root_uri(self, input: str, output: JobAttachmentS3Settings):"""Test Job Attachment S3 Settings from and to S3 root uri"""assert output == JobAttachmentS3Settings.from_s3_root_uri(input)assert input == output.to_s3_root_uri()
1
3
3
31
0
105
110
105
self,input,output
[]
None
{"Expr": 1}
5
6
5
["JobAttachmentS3Settings.from_s3_root_uri", "output.to_s3_root_uri", "pytest.mark.parametrize", "JobAttachmentS3Settings", "JobAttachmentS3Settings"]
0
[]
The function (test_job_attachment_setting_root_uri) defined within the public class called TestJobAttachmentS3SettingsModel.The function start at line 105 and ends at 110. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [105.0] and does not return any value. It...
aws-deadline_deadline-cloud
TestJobAttachmentS3SettingsModel
public
0
0
test_job_attachment_setting_from_s3_root_uri_error
def test_job_attachment_setting_from_s3_root_uri_error(self):"""Test Job Attachment S3 Settings from malformed S3 root uri"""with pytest.raises(MalformedAttachmentSettingError):JobAttachmentS3Settings.from_s3_root_uri("s3://s3BucketOnly")
1
3
1
20
0
112
117
112
self
[]
None
{"Expr": 2, "With": 1}
2
6
2
["pytest.raises", "JobAttachmentS3Settings.from_s3_root_uri"]
0
[]
The function (test_job_attachment_setting_from_s3_root_uri_error) defined within the public class called TestJobAttachmentS3SettingsModel.The function start at line 112 and ends at 117. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any...
aws-deadline_deadline-cloud
TestJobAttachmentS3SettingsModel
public
0
0
test_job_attachment_s3_settings_partial_session_action_manifest_prefix
def test_job_attachment_s3_settings_partial_session_action_manifest_prefix(self):"""Test JobAttachmentS3Settings partial_session_action_manifest_prefix method"""# Mock the _float_to_iso_datetime_string function to return a predictable valuewith patch("deadline.job_attachments.models._float_to_iso_datetime_string",retur...
1
16
1
61
0
119
141
119
self
[]
None
{"Assign": 2, "Expr": 1, "With": 1}
2
23
2
["patch", "JobAttachmentS3Settings.partial_session_action_manifest_prefix"]
0
[]
The function (test_job_attachment_s3_settings_partial_session_action_manifest_prefix) defined within the public class called TestJobAttachmentS3SettingsModel.The function start at line 119 and ends at 141. It contains 16 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters an...
aws-deadline_deadline-cloud
TestManifestSnapshotModel
public
0
0
test_manifest_snapshot_creation
def test_manifest_snapshot_creation(self):"""Test ManifestSnapshot creation with required values"""# Test with specific valuessnapshot = ManifestSnapshot(root="/path/to/root", manifest="manifest-path")assert snapshot.root == "/path/to/root"assert snapshot.manifest == "manifest-path"
1
4
1
30
0
147
154
147
self
[]
None
{"Assign": 1, "Expr": 1}
1
8
1
["ManifestSnapshot"]
0
[]
The function (test_manifest_snapshot_creation) defined within the public class called TestManifestSnapshotModel.The function start at line 147 and ends at 154. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 fun...
aws-deadline_deadline-cloud
TestManifestSnapshotModel
public
0
0
test_manifest_snapshot_construct_from_json_missing_attribute
def test_manifest_snapshot_construct_from_json_missing_attribute(self):"""Test ManifestSnapshot error when missing attribute"""json_str = json.dumps({"manifest": "path/to/manifest"})assert isinstance(json_str, str)# Test deserializationwith pytest.raises(TypeError):ManifestSnapshot(**json.loads(json_str))
1
5
1
43
0
156
165
156
self
[]
None
{"Assign": 1, "Expr": 2, "With": 1}
5
10
5
["json.dumps", "isinstance", "pytest.raises", "ManifestSnapshot", "json.loads"]
0
[]
The function (test_manifest_snapshot_construct_from_json_missing_attribute) defined within the public class called TestManifestSnapshotModel.The function start at line 156 and ends at 165. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return ...
aws-deadline_deadline-cloud
TestManifestSnapshotModel
public
0
0
test_manifest_snapshot_json_serialization_special_characters
def test_manifest_snapshot_json_serialization_special_characters(self):"""Test ManifestSnapshot serialization with special characters"""# Test with paths containing special characterssnapshot = ManifestSnapshot(root='/path/with spaces/and"quotes"/and\\backslashes',manifest="manifest-with-unicode-€-£-¥",)# Convert to JS...
1
10
1
57
0
167
184
167
self
[]
None
{"Assign": 4, "Expr": 1}
5
18
5
["ManifestSnapshot", "json.dumps", "asdict", "json.loads", "ManifestSnapshot"]
0
[]
The function (test_manifest_snapshot_json_serialization_special_characters) defined within the public class called TestManifestSnapshotModel.The function start at line 167 and ends at 184. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return...
aws-deadline_deadline-cloud
public
public
0
0
dest_paths
def dest_paths(tmp_path_factory: pytest.TempPathFactory):"""Create a set of local directory paths to use."""base_dir = tmp_path_factory.mktemp("checkpoint")dest_path1 = base_dir / "path1"dest_path2 = base_dir / "path2" / "with" / "some" / "nesting"dest_path3 = base_dir / ("a" * 1000)yield DestPaths(dest_path1, dest_pat...
1
6
1
52
4
28
34
28
tmp_path_factory
['dest_path2', 'dest_path3', 'dest_path1', 'base_dir']
None
{"Assign": 4, "Expr": 2}
2
7
2
["tmp_path_factory.mktemp", "DestPaths"]
0
[]
The function (dest_paths) defined within the public class called public.The function start at line 28 and ends at 34. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called ...
aws-deadline_deadline-cloud
public
public
0
0
test_generate_path_mapping_rules
def test_generate_path_mapping_rules(source_profile,destination_profile,expected_rules,):"""Test that _generate_path_mapping_rules generates correct path mapping rules."""rules = _generate_path_mapping_rules(source_profile, destination_profile)assert rules == expected_rules
1
7
3
23
1
158
166
158
source_profile,destination_profile,expected_rules
['rules']
None
{"Assign": 1, "Expr": 1}
2
9
2
["_generate_path_mapping_rules", "pytest.mark.parametrize"]
0
[]
The function (test_generate_path_mapping_rules) defined within the public class called public.The function start at line 158 and ends at 166. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [158.0] and does not return any value. It declares 2.0 functions, and ...
aws-deadline_deadline-cloud
public
public
0
0
test_path_mapping_rule_applier_create_empty
def test_path_mapping_rule_applier_create_empty():applier = _PathMappingRuleApplier([])assert applier.path_mapping_rules == []assert applier._path_mapping_trie == {}assert applier.transform("/some/path") == "/some/path"with pytest.raises(ValueError):applier.strict_transform("/some/path")
1
7
0
48
1
169
176
169
['applier']
None
{"Assign": 1, "Expr": 1, "With": 1}
4
8
4
["_PathMappingRuleApplier", "applier.transform", "pytest.raises", "applier.strict_transform"]
0
[]
The function (test_path_mapping_rule_applier_create_empty) defined within the public class called public.The function start at line 169 and ends at 176. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions...
aws-deadline_deadline-cloud
public
public
0
0
test_path_mapping_rule_applier_create_bad_source_path
def test_path_mapping_rule_applier_create_bad_source_path(dest_paths: DestPaths):with pytest.raises(ValueError):_PathMappingRuleApplier([PathMappingRule("xisop", "/mnt/shared", str(dest_paths.path1))])
1
3
1
33
0
179
181
179
dest_paths
[]
None
{"Expr": 1, "With": 1}
4
3
4
["pytest.raises", "_PathMappingRuleApplier", "PathMappingRule", "str"]
0
[]
The function (test_path_mapping_rule_applier_create_bad_source_path) defined within the public class called public.The function start at line 179 and ends at 181. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0...
aws-deadline_deadline-cloud
public
public
0
0
test_path_mapping_rule_applier_create_posix
def test_path_mapping_rule_applier_create_posix(dest_paths: DestPaths):rules = [PathMappingRule(PathFormat.POSIX.value, "/mnt/shared", str(dest_paths.path1)),PathMappingRule(PathFormat.POSIX.value, "/mnt/projects", str(dest_paths.path2)),PathMappingRule(PathFormat.POSIX.value, "/tmp", str(dest_paths.path3)),]applier = ...
1
12
1
145
2
184
195
184
dest_paths
['applier', 'rules']
None
{"Assign": 2}
13
12
13
["PathMappingRule", "str", "PathMappingRule", "str", "PathMappingRule", "str", "_PathMappingRuleApplier", "set", "applier._path_mapping_trie.keys", "set", "keys", "set", "keys"]
0
[]
The function (test_path_mapping_rule_applier_create_posix) defined within the public class called public.The function start at line 184 and ends at 195. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 13.0 functio...
aws-deadline_deadline-cloud
public
public
0
0
test_path_mapping_rule_applier_create_windows
def test_path_mapping_rule_applier_create_windows(dest_paths: DestPaths):rules = [PathMappingRule(PathFormat.WINDOWS.value, "C:\\Mnt\\Shared", str(dest_paths.path1)),PathMappingRule(PathFormat.WINDOWS.value, "C:\\Mnt\\proJects", str(dest_paths.path2)),PathMappingRule(PathFormat.WINDOWS.value, "D:\\tmp", str(dest_paths....
1
13
1
163
2
198
210
198
dest_paths
['applier', 'rules']
None
{"Assign": 2}
15
13
15
["PathMappingRule", "str", "PathMappingRule", "str", "PathMappingRule", "str", "_PathMappingRuleApplier", "set", "applier._path_mapping_trie.keys", "set", "keys", "set", "keys", "set", "keys"]
0
[]
The function (test_path_mapping_rule_applier_create_windows) defined within the public class called public.The function start at line 198 and ends at 210. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 15.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_path_mapping_rule_applier_create_mixed
def test_path_mapping_rule_applier_create_mixed(dest_paths: DestPaths):with pytest.raises(ValueError):rules = [PathMappingRule(PathFormat.POSIX.value, "/mnt/shared", str(dest_paths.path1)),PathMappingRule(PathFormat.WINDOWS.value, "D:\\tmp", str(dest_paths.path3)),]_PathMappingRuleApplier(rules)
1
7
1
59
1
213
219
213
dest_paths
['rules']
None
{"Assign": 1, "Expr": 1, "With": 1}
6
7
6
["pytest.raises", "PathMappingRule", "str", "PathMappingRule", "str", "_PathMappingRuleApplier"]
0
[]
The function (test_path_mapping_rule_applier_create_mixed) defined within the public class called public.The function start at line 213 and ends at 219. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 6.0 functions...
aws-deadline_deadline-cloud
public
public
0
0
test_source_posix_rule
def test_source_posix_rule(dest_paths: DestPaths):applier = _PathMappingRuleApplier([PathMappingRule(PathFormat.POSIX.value, "/mnt/shared", str(dest_paths.path1)),PathMappingRule(PathFormat.POSIX.value, "/mnt/projects", str(dest_paths.path2)),PathMappingRule(PathFormat.POSIX.value, "/tmp", str(dest_paths.path3)),])# Al...
1
17
1
157
1
222
244
222
dest_paths
['applier']
None
{"Assign": 1, "Expr": 1, "With": 1}
16
23
16
["_PathMappingRuleApplier", "PathMappingRule", "str", "PathMappingRule", "str", "PathMappingRule", "str", "applier.transform", "applier.transform", "applier.transform", "applier.strict_transform", "applier.strict_transform", "applier.strict_transform", "applier.transform", "pytest.raises", "applier.strict_transform"]
0
[]
The function (test_source_posix_rule) defined within the public class called public.The function start at line 222 and ends at 244. It contains 17 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 16.0 functions, and It has 16.0 ...
aws-deadline_deadline-cloud
public
public
0
0
test_source_windows_rule
def test_source_windows_rule(dest_paths: DestPaths):applier = _PathMappingRuleApplier([PathMappingRule(PathFormat.WINDOWS.value, "C:\\Shared", str(dest_paths.path1)),PathMappingRule(PathFormat.WINDOWS.value, "C:\\proJects", str(dest_paths.path2)),PathMappingRule(PathFormat.WINDOWS.value, "D:\\tmp", str(dest_paths.path3...
1
22
1
189
1
247
276
247
dest_paths
['applier']
None
{"Assign": 1, "Expr": 1, "With": 1}
18
30
18
["_PathMappingRuleApplier", "PathMappingRule", "str", "PathMappingRule", "str", "PathMappingRule", "str", "applier.transform", "applier.transform", "applier.transform", "applier.strict_transform", "applier.strict_transform", "applier.strict_transform", "applier.transform", "applier.transform", "applier.transform", "pyt...
0
[]
The function (test_source_windows_rule) defined within the public class called public.The function start at line 247 and ends at 276. It contains 22 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 18.0 functions, and It has 18....
aws-deadline_deadline-cloud
public
public
0
0
test_source_posix_rule_edge_cases
def test_source_posix_rule_edge_cases(dest_paths: DestPaths):applier = _PathMappingRuleApplier([PathMappingRule(PathFormat.POSIX.value, "/mnt/shared", str(dest_paths.path1)),PathMappingRule(PathFormat.POSIX.value, "/mnt/shared/projects", str(dest_paths.path2)),PathMappingRule(PathFormat.POSIX.value, "/tmp", str(dest_pa...
1
20
1
165
1
279
304
279
dest_paths
['applier']
None
{"Assign": 1}
16
26
16
["_PathMappingRuleApplier", "PathMappingRule", "str", "PathMappingRule", "str", "PathMappingRule", "str", "applier.transform", "applier.transform", "applier.transform", "applier.transform", "applier.transform", "applier.transform", "applier.transform", "applier.transform", "applier.transform"]
0
[]
The function (test_source_posix_rule_edge_cases) defined within the public class called public.The function start at line 279 and ends at 304. It contains 20 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 16.0 functions, and I...
aws-deadline_deadline-cloud
public
public
0
0
test_source_windows_rule_edge_cases
def test_source_windows_rule_edge_cases(dest_paths: DestPaths):applier = _PathMappingRuleApplier([PathMappingRule(PathFormat.WINDOWS.value, "C:\\shared", str(dest_paths.path1)),PathMappingRule(PathFormat.WINDOWS.value, "C:\\shared\\projects", str(dest_paths.path2)),PathMappingRule(PathFormat.WINDOWS.value, "D:\\temp", ...
1
19
1
138
1
307
331
307
dest_paths
['applier']
None
{"Assign": 1}
13
25
13
["_PathMappingRuleApplier", "PathMappingRule", "str", "PathMappingRule", "str", "PathMappingRule", "str", "applier.transform", "applier.transform", "applier.transform", "applier.transform", "applier.transform", "applier.transform"]
0
[]
The function (test_source_windows_rule_edge_cases) defined within the public class called public.The function start at line 307 and ends at 331. It contains 19 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 13.0 functions, and ...
aws-deadline_deadline-cloud
public
public
0
0
test_increment_race_condition.increment
def increment():for _ in range(N):progress_tracker.increase_processed(1, 0)
2
3
0
20
0
26
28
26
null
[]
None
null
0
0
0
null
0
null
The function (test_increment_race_condition.increment) defined within the public class called public.The function start at line 26 and ends at 28. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
TestProgressTracker
public
0
0
test_increment_race_condition
def test_increment_race_condition(self):progress_tracker = ProgressTracker(ProgressStatus.NONE, 0, 0)N = 10**5K = 10def increment():for _ in range(N):progress_tracker.increase_processed(1, 0)with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:for _ in range(K):executor.submit(increment)assert progres...
2
9
1
63
0
20
34
20
self
[]
None
{"Assign": 3, "Expr": 2, "For": 2, "With": 1}
6
15
6
["ProgressTracker", "range", "progress_tracker.increase_processed", "concurrent.futures.ThreadPoolExecutor", "range", "executor.submit"]
0
[]
The function (test_increment_race_condition) defined within the public class called TestProgressTracker.The function start at line 20 and ends at 34. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 6.0 functions, a...
aws-deadline_deadline-cloud
TestSummaryStatistics
public
0
0
test_aggregate_with_no_stats
def test_aggregate_with_no_stats(self):summary1 = SummaryStatistics()summary2 = SummaryStatistics()expected_aggregated_stats = SummaryStatistics()aggregated = summary1.aggregate(summary2)assert aggregated == expected_aggregated_stats
1
6
1
32
0
42
49
42
self
[]
None
{"Assign": 4}
4
8
4
["SummaryStatistics", "SummaryStatistics", "SummaryStatistics", "summary1.aggregate"]
0
[]
The function (test_aggregate_with_no_stats) defined within the public class called TestSummaryStatistics.The function start at line 42 and ends at 49. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, ...
aws-deadline_deadline-cloud
TestSummaryStatistics
public
0
0
test_aggregate
def test_aggregate(self):summary1 = SummaryStatistics(total_time=10.0,total_files=10,total_bytes=1000,processed_files=7,processed_bytes=700,skipped_files=3,skipped_bytes=300,transfer_rate=70.0,)summary2 = SummaryStatistics(total_time=10.0,total_files=10,total_bytes=1000,processed_files=8,processed_bytes=800,skipped_fil...
1
33
1
140
0
51
85
51
self
[]
None
{"Assign": 4}
4
35
4
["SummaryStatistics", "SummaryStatistics", "SummaryStatistics", "summary1.aggregate"]
0
[]
The function (test_aggregate) defined within the public class called TestSummaryStatistics.The function start at line 51 and ends at 85. It contains 33 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4...
aws-deadline_deadline-cloud
TestSummaryStatistics
public
0
0
test_aggregate_summary_stats_and_download_summary_stats
def test_aggregate_summary_stats_and_download_summary_stats(self):summary1 = SummaryStatistics(total_time=10.0,total_files=10,total_bytes=1000,processed_files=7,processed_bytes=700,skipped_files=3,skipped_bytes=300,transfer_rate=70.0,)summary2 = DownloadSummaryStatistics(total_time=10.0,total_files=10,total_bytes=1000,...
1
38
1
157
0
87
126
87
self
[]
None
{"Assign": 4}
4
40
4
["SummaryStatistics", "DownloadSummaryStatistics", "SummaryStatistics", "summary1.aggregate"]
0
[]
The function (test_aggregate_summary_stats_and_download_summary_stats) defined within the public class called TestSummaryStatistics.The function start at line 87 and ends at 126. It contains 38 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value...
aws-deadline_deadline-cloud
TestSummaryStatistics
public
0
0
test_aggregate_with_no_stats
def test_aggregate_with_no_stats(self):summary1 = SummaryStatistics()summary2 = SummaryStatistics()expected_aggregated_stats = SummaryStatistics()aggregated = summary1.aggregate(summary2)assert aggregated == expected_aggregated_stats
1
6
1
32
0
134
141
42
self
[]
None
{"Assign": 4}
4
8
4
["SummaryStatistics", "SummaryStatistics", "SummaryStatistics", "summary1.aggregate"]
0
[]
The function (test_aggregate_with_no_stats) defined within the public class called TestSummaryStatistics.The function start at line 134 and ends at 141. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions...
aws-deadline_deadline-cloud
TestSummaryStatistics
public
0
0
test_aggregate
def test_aggregate(self):summary1 = DownloadSummaryStatistics(total_time=10.0,total_files=10,total_bytes=1000,processed_files=7,processed_bytes=700,skipped_files=3,skipped_bytes=300,transfer_rate=70.0,file_counts_by_root_directory={"/home/username/outputs1": 1,"/home/username/outputs2": 2,"/home/username/outputs3": 4,}...
1
48
1
191
0
143
192
143
self
[]
None
{"Assign": 4}
4
35
4
["SummaryStatistics", "SummaryStatistics", "SummaryStatistics", "summary1.aggregate"]
0
[]
The function (test_aggregate) defined within the public class called TestSummaryStatistics.The function start at line 143 and ends at 192. It contains 48 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has...
aws-deadline_deadline-cloud
TestDownloadSummaryStatistics
public
0
0
test_aggregate_with_summary_stats
def test_aggregate_with_summary_stats(self):"""Tests if it raises exception when DownloadSummaryStatistics calls aggreate functionwith SummaryStatistics object."""summary1 = DownloadSummaryStatistics()summary2 = SummaryStatistics()with pytest.raises(TypeError):summary1.aggregate(summary2)
1
5
1
30
0
194
203
194
self
[]
None
{"Assign": 2, "Expr": 2, "With": 1}
4
10
4
["DownloadSummaryStatistics", "SummaryStatistics", "pytest.raises", "summary1.aggregate"]
0
[]
The function (test_aggregate_with_summary_stats) defined within the public class called TestDownloadSummaryStatistics.The function start at line 194 and ends at 203. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares ...
aws-deadline_deadline-cloud
TestUpload
public
0
0
before_test
def before_test(self, request, create_s3_bucket, default_job_attachment_s3_settings: JobAttachmentS3Settings):"""Setup the default queue and s3 bucket for all asset tests.Mark test with `no_setup` if you don't want this setup to run."""if "no_setup" in request.keywords:returnself.job_attachment_s3_settings = default_jo...
2
7
4
35
0
68
79
68
self,request,create_s3_bucket,default_job_attachment_s3_settings
[]
None
{"Assign": 1, "Expr": 2, "If": 1, "Return": 1}
2
12
2
["create_s3_bucket", "pytest.fixture"]
0
[]
The function (before_test) defined within the public class called TestUpload.The function start at line 68 and ends at 79. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [68.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management
def test_asset_management(self,tmpdir: py.path.local,farm_id,queue_id,default_job_attachment_s3_settings,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version: ManifestVersion,expected_manifest: str,):"""Test that the correct files get uploaded to S3 and the asset manifestis as expected when the...
1
176
10
873
0
95
300
95
self,tmpdir,farm_id,queue_id,default_job_attachment_s3_settings,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version,expected_manifest
[]
None
{"Assign": 23, "Expr": 15, "With": 2}
85
206
85
["str", "join", "tmpdir.mkdir", "scene_file.write", "os.utime", "join", "tmpdir.mkdir", "texture_file.write", "os.utime", "join", "mkdir", "tmpdir.join", "normal_file.write", "os.utime", "tmpdir.join", "meta_file.write", "os.utime", "tmpdir.mkdir", "tmpdir.join", "join", "tmpdir.join", "tmpdir.join", "join", "history_d...
0
[]
The function (test_asset_management) defined within the public class called TestUpload.The function start at line 95 and ends at 300. It contains 176 lines of code and it has a cyclomatic complexity of 1. It takes 10 parameters, represented as [95.0] and does not return any value. It declares 85.0 functions, and It ha...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_windows_multi_root
def test_asset_management_windows_multi_root(self,tmpdir,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version,expected_manifest,):"""Test that the correct files get uploaded to S3 and the asset manifestis as expected when there are multiple input and output files."""# Givenroot...
1
129
9
520
0
317
466
317
self,tmpdir,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version,expected_manifest
[]
None
{"Assign": 16, "Expr": 9, "With": 1}
34
150
34
["tmpdir.mkdir", "root_c.join", "input_c.write", "os.utime", "tmpdir.mkdir", "patch", "patch", "str", "patch", "caplog.set_level", "MagicMock", "MagicMock", "S3AssetManager", "asset_manager.prepare_paths_for_upload", "asset_manager.hash_assets_and_create_manifest", "asset_manager.upload_assets", "Attachments", "Manifes...
0
[]
The function (test_asset_management_windows_multi_root) defined within the public class called TestUpload.The function start at line 317 and ends at 466. It contains 129 lines of code and it has a cyclomatic complexity of 1. It takes 9 parameters, represented as [317.0] and does not return any value. It declares 34.0 f...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_many_inputs
def test_asset_management_many_inputs(self,tmpdir,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version: ManifestVersion,num_input_files: int,):"""Test that the correct files get uploaded to S3 and the asset manifestis as expected when there are multiple input and output files."...
4
120
9
517
0
483
624
483
self,tmpdir,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version,num_input_files
[]
None
{"Assign": 16, "AugAssign": 1, "Expr": 9, "For": 1, "With": 1}
41
142
41
["str", "S3AssetManager", "patch", "patch", "patch", "str", "range", "patch", "caplog.set_level", "MagicMock", "MagicMock", "tmpdir.mkdir", "range", "test_dir.join", "test_file.write", "test_file.size", "input_files.append", "tmpdir.mkdir", "asset_manager.prepare_paths_for_upload", "str", "joinpath", "Path", "asset_man...
0
[]
The function (test_asset_management_many_inputs) defined within the public class called TestUpload.The function start at line 483 and ends at 624. It contains 120 lines of code and it has a cyclomatic complexity of 4. It takes 9 parameters, represented as [483.0] and does not return any value. It declares 41.0 function...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_many_inputs_with_same_hash
def test_asset_management_many_inputs_with_same_hash(self,tmpdir,farm_id,queue_id,manifest_version: ManifestVersion,num_input_files: int,):"""Test that the asset management can handle many input files with the same hash.If files with different paths have the same content (and thus the same hash),they should be counted ...
2
78
6
349
0
641
736
641
self,tmpdir,farm_id,queue_id,manifest_version,num_input_files
[]
None
{"Assign": 14, "AugAssign": 1, "Expr": 6, "For": 1, "With": 1}
26
96
26
["str", "S3AssetManager", "patch", "patch", "patch", "MagicMock", "MagicMock", "tmpdir.mkdir", "range", "test_dir.join", "test_file.write", "test_file.size", "input_files.append", "test_file.size", "tmpdir.mkdir", "asset_manager.prepare_paths_for_upload", "str", "joinpath", "Path", "asset_manager.hash_assets_and_create...
0
[]
The function (test_asset_management_many_inputs_with_same_hash) defined within the public class called TestUpload.The function start at line 641 and ends at 736. It contains 78 lines of code and it has a cyclomatic complexity of 2. It takes 6 parameters, represented as [641.0] and does not return any value. It declares...
aws-deadline_deadline-cloud
public
public
0
0
test_asset_management_no_outputs_inputs_already_uploaded.mock_hash_file
def mock_hash_file(file_path: str, hash_alg: HashAlgorithm):if file_path == already_uploaded_file:return "existinghash"elif file_path == not_yet_uploaded_file:return "somethingnew"
3
5
2
25
0
767
771
767
null
[]
None
null
0
0
0
null
0
null
The function (test_asset_management_no_outputs_inputs_already_uploaded.mock_hash_file) defined within the public class called public.The function start at line 767 and ends at 771. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [767.0] and does not return any ...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_no_outputs_inputs_already_uploaded
def test_asset_management_no_outputs_inputs_already_uploaded(self,tmpdir,farm_id,queue_id,assert_expected_files_on_s3,caplog,manifest_version: ManifestVersion,):"""Test the input files that have already been uploaded to S3 are skipped."""already_uploaded_file = tmpdir.mkdir("scene").join("maya_scene.ma")already_uploade...
1
101
7
422
0
745
872
745
self,tmpdir,farm_id,queue_id,assert_expected_files_on_s3,caplog,manifest_version
[]
Returns
{"Assign": 14, "Expr": 9, "If": 2, "Return": 2, "With": 1}
33
128
33
["join", "tmpdir.mkdir", "already_uploaded_file.write", "join", "tmpdir.mkdir", "not_yet_uploaded_file.write", "already_uploaded_file.size", "not_yet_uploaded_file.size", "patch", "patch", "patch", "patch", "patch", "resource", "boto3.Session", "s3.Bucket", "caplog.set_level", "MagicMock", "MagicMock", "S3AssetManager"...
0
[]
The function (test_asset_management_no_outputs_inputs_already_uploaded) defined within the public class called TestUpload.The function start at line 745 and ends at 872. It contains 101 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [745.0], and this function return a value...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_no_outputs_large_number_of_inputs_already_uploaded
def test_asset_management_no_outputs_large_number_of_inputs_already_uploaded(self,tmpdir,farm_id,queue_id,assert_expected_files_on_s3,caplog,manifest_version: ManifestVersion,num_input_files: int,):"""Test the input files that have already been uploaded to S3 are skipped."""# Givenasset_manager = S3AssetManager(farm_id...
4
106
8
455
0
889
1,014
889
self,tmpdir,farm_id,queue_id,assert_expected_files_on_s3,caplog,manifest_version,num_input_files
[]
None
{"Assign": 15, "AugAssign": 1, "Expr": 11, "For": 1, "With": 1}
39
126
39
["S3AssetManager", "patch", "patch", "patch", "patch", "str", "range", "patch", "resource", "boto3.Session", "s3.Bucket", "caplog.set_level", "MagicMock", "MagicMock", "tmpdir.mkdir", "range", "test_dir.join", "test_file.write", "test_file.size", "input_files.append", "bucket.put_object", "self.job_attachment_s3_settin...
0
[]
The function (test_asset_management_no_outputs_large_number_of_inputs_already_uploaded) defined within the public class called TestUpload.The function start at line 889 and ends at 1014. It contains 106 lines of code and it has a cyclomatic complexity of 4. It takes 8 parameters, represented as [889.0] and does not ret...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_no_inputs
def test_asset_management_no_inputs(self,tmpdir,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version: ManifestVersion,):"""Test that only the manifest file gets uploaded to S3 and the asset manifest is as expectedwhen there are no input files and multiple output files."""output...
1
84
8
324
0
1,023
1,122
1,023
self,tmpdir,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,caplog,manifest_version
[]
None
{"Assign": 9, "Expr": 3, "With": 1}
19
100
19
["str", "tmpdir.join", "patch", "patch", "patch", "MagicMock", "MagicMock", "S3AssetManager", "tmpdir.mkdir", "asset_manager.prepare_paths_for_upload", "asset_manager.hash_assets_and_create_manifest", "asset_manager.upload_assets", "Attachments", "ManifestProperties", "attachments.to_dict", "PathFormat", "assert_progre...
0
[]
The function (test_asset_management_no_inputs) defined within the public class called TestUpload.The function start at line 1023 and ends at 1122. It contains 84 lines of code and it has a cyclomatic complexity of 1. It takes 8 parameters, represented as [1023.0] and does not return any value. It declares 19.0 function...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_no_s3_bucket_set
def test_asset_management_no_s3_bucket_set(self,farm_id,queue_id,manifest_version: ManifestVersion,):"""Test that the appropriate error is raised when no s3 bucket is provided."""missing_s3_job_attachment_settings = deepcopy(self.job_attachment_s3_settings)del missing_s3_job_attachment_settings.s3BucketNamewith pytest....
1
15
4
54
0
1,130
1,149
1,130
self,farm_id,queue_id,manifest_version
[]
None
{"Assign": 1, "Expr": 2, "With": 1}
4
20
4
["deepcopy", "pytest.raises", "S3AssetManager", "pytest.mark.parametrize"]
0
[]
The function (test_asset_management_no_s3_bucket_set) defined within the public class called TestUpload.The function start at line 1130 and ends at 1149. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1130.0] and does not return any value. It declares 4.0 fu...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_with_s3_bucket_empty
def test_asset_management_with_s3_bucket_empty(self,farm_id,queue_id,manifest_version: ManifestVersion,):"""Test that the appropriate error is raised when no s3 bucket is provided."""s3_job_attachment_settings_with_s3_bucket_empty = deepcopy(self.job_attachment_s3_settings)s3_job_attachment_settings_with_s3_bucket_empt...
1
15
4
55
0
1,157
1,175
1,157
self,farm_id,queue_id,manifest_version
[]
None
{"Assign": 2, "Expr": 2, "With": 1}
4
19
4
["deepcopy", "pytest.raises", "S3AssetManager", "pytest.mark.parametrize"]
0
[]
The function (test_asset_management_with_s3_bucket_empty) defined within the public class called TestUpload.The function start at line 1157 and ends at 1175. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1157.0] and does not return any value. It declares 4....
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_no_s3_root_prefix_set
def test_asset_management_no_s3_root_prefix_set(self,farm_id,queue_id,manifest_version: ManifestVersion,):"""Test that the appropriate error is raised when no s3 root prefix is provided."""missing_s3_job_attachment_settings = deepcopy(self.job_attachment_s3_settings)del missing_s3_job_attachment_settings.rootPrefixwith...
1
15
4
54
0
1,183
1,202
1,183
self,farm_id,queue_id,manifest_version
[]
None
{"Assign": 1, "Expr": 2, "With": 1}
4
20
4
["deepcopy", "pytest.raises", "S3AssetManager", "pytest.mark.parametrize"]
0
[]
The function (test_asset_management_no_s3_root_prefix_set) defined within the public class called TestUpload.The function start at line 1183 and ends at 1202. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1183.0] and does not return any value. It declares 4...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_with_root_prefix_empty
def test_asset_management_with_root_prefix_empty(self,farm_id,queue_id,manifest_version: ManifestVersion,):"""Test that the appropriate error is raised when no s3 bucket is provided."""s3_job_attachment_settings_with_root_prefix_empty = deepcopy(self.job_attachment_s3_settings)s3_job_attachment_settings_with_root_prefi...
1
17
4
55
0
1,210
1,230
1,210
self,farm_id,queue_id,manifest_version
[]
None
{"Assign": 2, "Expr": 2, "With": 1}
4
21
4
["deepcopy", "pytest.raises", "S3AssetManager", "pytest.mark.parametrize"]
0
[]
The function (test_asset_management_with_root_prefix_empty) defined within the public class called TestUpload.The function start at line 1210 and ends at 1230. It contains 17 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1210.0] and does not return any value. It declares ...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_manifest_version_not_implemented
def test_asset_management_manifest_version_not_implemented(self, farm_id, queue_id, tmpdir):"""Test that the appropriate error is raised when the library doesn't support an asset manifest version."""with patch(f"{deadline.__package__}.job_attachments.upload.ManifestModelRegistry.get_manifest_model",return_value=BaseMan...
1
29
4
129
0
1,232
1,263
1,232
self,farm_id,queue_id,tmpdir
[]
None
{"Assign": 4, "Expr": 3, "With": 2}
8
32
8
["patch", "pytest.raises", "S3AssetManager", "tmpdir.mkdir", "tmpdir.join", "test_file.write", "asset_manager.prepare_paths_for_upload", "asset_manager.hash_assets_and_create_manifest"]
0
[]
The function (test_asset_management_manifest_version_not_implemented) defined within the public class called TestUpload.The function start at line 1232 and ends at 1263. It contains 29 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1232.0] and does not return any value. It...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_uploader_constructor
def test_asset_uploader_constructor(self, fresh_deadline_config):"""Test that when the asset uploader is created, the instance variables are correctly set."""uploader = S3AssetUploader()assert uploader.num_upload_workers == 5assert uploader.small_file_threshold == 20 * 8 * (1024**2)
1
4
2
33
0
1,265
1,271
1,265
self,fresh_deadline_config
[]
None
{"Assign": 1, "Expr": 1}
1
7
1
["S3AssetUploader"]
0
[]
The function (test_asset_uploader_constructor) defined within the public class called TestUpload.The function start at line 1265 and ends at 1271. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1265.0] and does not return any value. It declare 1.0 function, a...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_uploader_constructor_with_non_integer_config_settings
def test_asset_uploader_constructor_with_non_integer_config_settings(self, fresh_deadline_config):"""Tests that when the asset uploader is created with non-integer config settings, an AssetSyncError is raised."""config.set_setting("settings.s3_max_pool_connections", "!@#$")with pytest.raises(AssetSyncError) as err:_ = ...
1
8
2
51
0
1,273
1,283
1,273
self,fresh_deadline_config
[]
None
{"Assign": 1, "Expr": 2, "With": 1}
5
11
5
["config.set_setting", "pytest.raises", "S3AssetUploader", "isinstance", "str"]
0
[]
The function (test_asset_uploader_constructor_with_non_integer_config_settings) defined within the public class called TestUpload.The function start at line 1273 and ends at 1283. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1273.0] and does not return any ...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_uploader_constructor_with_nonvalid_config_settings
def test_asset_uploader_constructor_with_nonvalid_config_settings(self, setting_name, nonvalid_value, expected_error_msg, fresh_deadline_config):"""Tests that when the asset uploader is created with nonvalid config settings, an AssetSyncError is raised."""config.set_setting(f"settings.{setting_name}", nonvalid_value)wi...
1
7
5
47
0
1,320
1,329
1,320
self,setting_name,nonvalid_value,expected_error_msg,fresh_deadline_config
[]
None
{"Assign": 1, "Expr": 2, "With": 1}
10
10
10
["config.set_setting", "pytest.raises", "S3AssetUploader", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_asset_uploader_constructor_with_nonvalid_config_settings) defined within the public class called TestUpload.The function start at line 1320 and ends at 1329. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [1320.0] and does not return any val...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_file_already_uploaded_bucket_in_different_account
def test_file_already_uploaded_bucket_in_different_account(self):"""Test that the appropriate error is raised when checking if a file has already been uploaded, but the bucketis in an account that is different from the uploader's account."""s3 = boto3.client("s3")stubber = Stubber(s3)stubber.add_client_error("head_obje...
1
25
1
116
0
1,332
1,363
1,332
self
[]
None
{"Assign": 4, "Expr": 3, "With": 2}
8
32
8
["boto3.client", "Stubber", "stubber.add_client_error", "S3AssetUploader", "pytest.raises", "uploader.file_already_uploaded", "isinstance", "str"]
0
[]
The function (test_file_already_uploaded_bucket_in_different_account) defined within the public class called TestUpload.The function start at line 1332 and ends at 1363. It contains 25 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It decl...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_file_already_uploaded_timeout
def test_file_already_uploaded_timeout(self):"""Test that the appropriate error is raised when a ReadTimeoutError occursduring an S3 request to check file existence in an S3 bucket."""mock_s3_client = MagicMock()mock_s3_client.head_object.side_effect = ReadTimeoutError(endpoint_url="test_url")uploader = S3AssetUploader...
1
15
1
81
0
1,366
1,386
1,366
self
[]
None
{"Assign": 4, "Expr": 2, "With": 1}
7
21
7
["MagicMock", "ReadTimeoutError", "S3AssetUploader", "pytest.raises", "uploader.file_already_uploaded", "isinstance", "str"]
0
[]
The function (test_file_already_uploaded_timeout) defined within the public class called TestUpload.The function start at line 1366 and ends at 1386. It contains 15 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 7.0 functions, ...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_upload_bytes_to_s3_bucket_in_different_account
def test_upload_bytes_to_s3_bucket_in_different_account(self):"""Test that the appropriate error is raised when uploading bytes, but the bucketis in an account that is different from the uploader's account."""s3 = boto3.client("s3")stubber = Stubber(s3)# This is the error that's surfaced when a bucket is in a different...
1
24
1
119
0
1,389
1,421
1,389
self
[]
None
{"Assign": 4, "Expr": 3, "With": 2}
9
33
9
["boto3.client", "Stubber", "stubber.add_client_error", "S3AssetUploader", "pytest.raises", "uploader.upload_bytes_to_s3", "BytesIO", "isinstance", "str"]
0
[]
The function (test_upload_bytes_to_s3_bucket_in_different_account) defined within the public class called TestUpload.The function start at line 1389 and ends at 1421. It contains 24 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_upload_bytes_to_s3_timeout
def test_upload_bytes_to_s3_timeout(self):"""Test that the appropriate error is raised when a ReadTimeoutError occursduring an S3 request to upload a binary file to an S3 bucket."""mock_s3_client = MagicMock()mock_s3_client.upload_fileobj.side_effect = ReadTimeoutError(endpoint_url="test_url")uploader = S3AssetUploader...
1
17
1
85
0
1,424
1,446
1,424
self
[]
None
{"Assign": 4, "Expr": 2, "With": 1}
8
23
8
["MagicMock", "ReadTimeoutError", "S3AssetUploader", "pytest.raises", "uploader.upload_bytes_to_s3", "BytesIO", "isinstance", "str"]
0
[]
The function (test_upload_bytes_to_s3_timeout) defined within the public class called TestUpload.The function start at line 1424 and ends at 1446. It contains 17 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 8.0 functions, and...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_upload_file_to_s3_bucket_in_different_account
def test_upload_file_to_s3_bucket_in_different_account(self, tmp_path: Path):"""Test that the appropriate error is raised when uploading files, but the bucketis in an account that is different from the uploader's account."""s3 = boto3.client("s3")stubber = Stubber(s3)# This is the error that's surfaced when a bucket is...
1
27
2
144
0
1,449
1,485
1,449
self,tmp_path
[]
None
{"Assign": 5, "Expr": 4, "With": 2}
11
37
11
["boto3.client", "Stubber", "stubber.add_client_error", "S3AssetUploader", "file.write_text", "pytest.raises", "uploader.upload_file_to_s3", "isinstance", "str", "str", "str"]
0
[]
The function (test_upload_file_to_s3_bucket_in_different_account) defined within the public class called TestUpload.The function start at line 1449 and ends at 1485. It contains 27 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1449.0] and does not return any value. It dec...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_upload_file_to_s3_bucket_has_kms_permissions_error
def test_upload_file_to_s3_bucket_has_kms_permissions_error(self, tmp_path: Path):"""Test that the appropriate error is raised when uploading files, but the bucketis encrypted with a KMS key and the user doesn't have access to the key."""s3 = boto3.client("s3")stubber = Stubber(s3)# This is the error that's surfaced wh...
1
27
2
144
0
1,488
1,524
1,488
self,tmp_path
[]
None
{"Assign": 5, "Expr": 4, "With": 2}
11
37
11
["boto3.client", "Stubber", "stubber.add_client_error", "S3AssetUploader", "file.write_text", "pytest.raises", "uploader.upload_file_to_s3", "isinstance", "str", "str", "str"]
0
[]
The function (test_upload_file_to_s3_bucket_has_kms_permissions_error) defined within the public class called TestUpload.The function start at line 1488 and ends at 1524. It contains 27 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1488.0] and does not return any value. I...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_upload_file_to_s3_timeout
def test_upload_file_to_s3_timeout(self, tmp_path: Path):"""Test that the appropriate error is raised when a ReadTimeoutError occursduring an S3 request to upload a file to an S3 bucket."""mock_future = MagicMock()mock_transfer_manager = MagicMock()mock_transfer_manager.upload.return_value = mock_futuremock_future.resu...
1
26
2
130
0
1,527
1,559
1,527
self,tmp_path
[]
None
{"Assign": 8, "Expr": 3, "With": 2}
11
33
11
["MagicMock", "MagicMock", "ReadTimeoutError", "boto3.client", "S3AssetUploader", "file.write_text", "patch", "pytest.raises", "uploader.upload_file_to_s3", "isinstance", "str"]
0
[]
The function (test_upload_file_to_s3_timeout) defined within the public class called TestUpload.The function start at line 1527 and ends at 1559. It contains 26 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1527.0] and does not return any value. It declares 11.0 functions...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_process_input_path_cached_file_is_updated
def test_process_input_path_cached_file_is_updated(self, farm_id, queue_id, tmpdir, manifest_version: ManifestVersion):"""Test that a file that exists in the hash cache, but has been modified, will be hashed again."""# GIVENroot_dir = tmpdir.mkdir("root")test_file = root_dir.join("test.txt")test_file.write("test")file_...
2
27
5
187
0
1,567
1,603
1,567
self,farm_id,queue_id,tmpdir,manifest_version
[]
None
{"Assign": 9, "Expr": 3, "With": 1}
15
37
15
["tmpdir.mkdir", "root_dir.join", "test_file.write", "os.stat", "HashCacheEntry", "str", "datetime.fromtimestamp", "HashCacheEntry", "MagicMock", "patch", "S3AssetManager", "asset_manager._process_input_path", "Path", "hash_cache.put_entry.assert_called_with", "pytest.mark.parametrize"]
0
[]
The function (test_process_input_path_cached_file_is_updated) defined within the public class called TestUpload.The function start at line 1567 and ends at 1603. It contains 27 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [1567.0] and does not return any value. It declare...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_process_input_path_skip_file_already_in_hash_cache
def test_process_input_path_skip_file_already_in_hash_cache(self, farm_id, queue_id, tmpdir):"""Test the input files that already exists in the hash cache are skipped hashing."""# GIVENroot_dir = tmpdir.mkdir("root")test_file = root_dir.join("test.txt")test_file.write("test")file_time = str(datetime.fromtimestamp(os.st...
1
27
4
192
0
1,605
1,641
1,605
self,farm_id,queue_id,tmpdir
[]
None
{"Assign": 10, "Expr": 3, "With": 1}
16
37
16
["tmpdir.mkdir", "root_dir.join", "test_file.write", "str", "datetime.fromtimestamp", "os.stat", "test_file.size", "HashCacheEntry", "MagicMock", "patch", "S3AssetManager", "asset_manager._process_input_path", "Path", "asset_manager._create_manifest_file", "Path", "hash_cache.put_entry.assert_not_called"]
0
[]
The function (test_process_input_path_skip_file_already_in_hash_cache) defined within the public class called TestUpload.The function start at line 1605 and ends at 1641. It contains 27 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1605.0] and does not return any value. I...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_misconfigured_inputs
def test_asset_management_misconfigured_inputs(self, farm_id, queue_id, tmpdir):"""Ensure that when directories are classified as files the submission is prevented with a MisconfiguredInputsError."""asset_root = str(tmpdir)# GIVENscene_file = tmpdir.mkdir("scene").join("maya.ma")scene_file.write("a")input_not_exist = "...
1
25
4
166
0
1,644
1,676
1,644
self,farm_id,queue_id,tmpdir
[]
None
{"Assign": 5, "Expr": 3, "With": 2}
15
33
15
["str", "join", "tmpdir.mkdir", "scene_file.write", "str", "Path", "patch", "patch", "patch", "S3AssetManager", "pytest.raises", "asset_manager.prepare_paths_for_upload", "str", "joinpath", "Path"]
0
[]
The function (test_asset_management_misconfigured_inputs) defined within the public class called TestUpload.The function start at line 1644 and ends at 1676. It contains 25 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1644.0] and does not return any value. It declares 15...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_input_not_exists
def test_asset_management_input_not_exists(self, farm_id, queue_id, tmpdir, caplog):"""Test that input paths that do not exist are added to referenced files."""asset_root = str(tmpdir)# GIVENscene_file = tmpdir.mkdir("scene").join("maya.ma")scene_file.write("a")input_not_exist = tmpdir.join("/texture/that/does/notexist...
1
67
5
356
0
1,679
1,761
1,679
self,farm_id,queue_id,tmpdir,caplog
[]
None
{"Assign": 11, "Expr": 6, "With": 1}
26
83
26
["str", "join", "tmpdir.mkdir", "scene_file.write", "tmpdir.join", "tmpdir.mkdir", "scene_file.size", "patch", "patch", "patch", "caplog.set_level", "MagicMock", "MagicMock", "S3AssetManager", "asset_manager.prepare_paths_for_upload", "str", "joinpath", "Path", "asset_manager.hash_assets_and_create_manifest", "asset_ma...
0
[]
The function (test_asset_management_input_not_exists) defined within the public class called TestUpload.The function start at line 1679 and ends at 1761. It contains 67 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [1679.0] and does not return any value. It declares 26.0 f...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_asset_management_input_not_exists_require_fails
def test_asset_management_input_not_exists_require_fails(self, farm_id, queue_id, tmpdir):"""Test that input paths that do not exist raise a MisconfiguredInputsError if the `require_paths_exist` flag is true."""asset_root = str(tmpdir)# GIVENscene_file = tmpdir.mkdir("scene").join("maya.ma")scene_file.write("a")input_n...
1
26
4
166
0
1,764
1,796
1,764
self,farm_id,queue_id,tmpdir
[]
None
{"Assign": 4, "Expr": 3, "With": 2}
14
33
14
["str", "join", "tmpdir.mkdir", "scene_file.write", "patch", "patch", "patch", "S3AssetManager", "pytest.raises", "asset_manager.prepare_paths_for_upload", "str", "joinpath", "Path", "str"]
0
[]
The function (test_asset_management_input_not_exists_require_fails) defined within the public class called TestUpload.The function start at line 1764 and ends at 1796. It contains 26 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1764.0] and does not return any value. It d...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_manage_assets_with_symlinks
def test_manage_assets_with_symlinks(self,tmpdir: py.path.local,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,manifest_version: ManifestVersion,expected_manifest: str,):"""Test that symlink paths that contain '..' expand the full path withoutresolving the symlink target, but also hash the symli...
1
111
8
520
0
1,813
1,949
1,813
self,tmpdir,farm_id,queue_id,assert_canonical_manifest,assert_expected_files_on_s3,manifest_version,expected_manifest
[]
None
{"Assign": 16, "Expr": 10, "With": 1}
51
137
51
["join", "tmpdir.mkdir", "test_file.write", "test_file.size", "os.utime", "Path", "tmpdir.join", "Path", "join", "join", "join", "tmpdir.mkdir", "symlink_input_path.symlink_to", "str", "Path", "join", "join", "join", "tmpdir.join", "symlink_output_path.symlink_to", "tmpdir.mkdir", "patch", "patch", "patch", "patch", "M...
0
[]
The function (test_manage_assets_with_symlinks) defined within the public class called TestUpload.The function start at line 1813 and ends at 1949. It contains 111 lines of code and it has a cyclomatic complexity of 1. It takes 8 parameters, represented as [1813.0] and does not return any value. It declares 51.0 functi...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_get_file_system_locations_by_type
def test_get_file_system_locations_by_type(self,farm_id: str,queue_id: str,mock_file_system_locations: List[FileSystemLocation],expected_result: Tuple[Dict[str, str], Dict[str, str]],):mock_storage_profile_for_queue = StorageProfile(storageProfileId="sp-0123456789",displayName="Storage profile 1",osFamily=StorageProfil...
1
22
5
96
0
2,008
2,032
2,008
self,farm_id,queue_id,mock_file_system_locations,expected_result
[]
None
{"Assign": 3}
10
25
10
["StorageProfile", "S3AssetManager", "asset_manager._get_file_system_locations_by_type", "pytest.mark.parametrize", "FileSystemLocation", "FileSystemLocation", "FileSystemLocation", "FileSystemLocation", "FileSystemLocation", "FileSystemLocation"]
0
[]
The function (test_get_file_system_locations_by_type) defined within the public class called TestUpload.The function start at line 2008 and ends at 2032. It contains 22 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [2008.0] and does not return any value. It declares 10.0 f...
aws-deadline_deadline-cloud
TestUpload
public
0
0
test_get_asset_groups
def test_get_asset_groups(self,farm_id: str,queue_id: str,input_paths: Set[str],output_paths: Set[str],referenced_paths: Set[str],local_type_locations: Dict[str, str],shared_type_locations: Dict[str, str],expected_result: List[AssetRootGroup],):asset_manager = S3AssetManager(farm_id=farm_id,queue_id=queue_id,job_attach...
1
26
9
130
0
2,169
2,196
2,169
self,farm_id,queue_id,input_paths,output_paths,referenced_paths,local_type_locations,shared_type_locations,expected_result
[]
None
{"Assign": 4}
38
28
38
["S3AssetManager", "asset_manager._get_asset_groups", "sorted", "sorted", "pytest.mark.skipif", "patch.object", "pytest.mark.parametrize", "set", "set", "set", "set", "AssetRootGroup", "Path", "Path", "Path", "set", "AssetRootGroup", "Path", "Path", "set", "AssetRootGroup", "Path", "Path", "set", "AssetRootGroup", "set...
0
[]
The function (test_get_asset_groups) defined within the public class called TestUpload.The function start at line 2169 and ends at 2196. It contains 26 lines of code and it has a cyclomatic complexity of 1. It takes 9 parameters, represented as [2169.0] and does not return any value. It declares 38.0 functions, and It...