Skip to content

Commit

Permalink
Minor python code improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
VatsalJagani committed Mar 30, 2024
1 parent 8b45dc8 commit 9014772
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_build_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_file_permission_check_no_change(self):
app_build_name = "my_app_2_1_1_2_1.tgz"
assert os.path.isfile(app_build_name)

_, _, all_files, all_folders = self.extract_app_build(app_build_name)
_, _, all_files, _ = self.extract_app_build(app_build_name)
assert "my_app_2/bin/file1.sh" in all_files
assert get_file_permissions("my_app_2/bin/file1.sh") == "rwxr-xr-x"
assert "my_app_2/bin/file2.sh" in all_files
Expand All @@ -232,7 +232,7 @@ def test_file_auto_change_permission(self):
app_build_name = "my_app_2_1_1_2_1.tgz"
assert os.path.isfile(app_build_name)

file_count, folder_count, all_files, all_folders = self.extract_app_build(app_build_name)
_, _, all_files, _ = self.extract_app_build(app_build_name)
assert "my_app_2/bin/file1.sh" in all_files
assert get_file_permissions("my_app_2/bin/file1.sh") == "rwxr-xr-x"
assert "my_app_2/bin/file2.sh" in all_files
Expand All @@ -250,7 +250,7 @@ def test_file_permission_check_no_change_2(self):
app_build_name = "my_app_2_1_1_2_1.tgz"
assert os.path.isfile(app_build_name)

_, _, all_files, all_folders = self.extract_app_build(app_build_name)
_, _, all_files, _ = self.extract_app_build(app_build_name)
assert "my_app_2/bin/file1.sh" in all_files
assert get_file_permissions("my_app_2/bin/file1.sh") == "rwxr-xr-x"
assert "my_app_2/bin/file2.sh" in all_files
Expand All @@ -268,7 +268,7 @@ def test_file_auto_change_permission_2(self):
app_build_name = "my_app_2_1_1_2_1.tgz"
assert os.path.isfile(app_build_name)

_, _, all_files, all_folders = self.extract_app_build(app_build_name)
_, _, all_files, _ = self.extract_app_build(app_build_name)
assert "my_app_2/bin/file1.sh" in all_files
assert get_file_permissions("my_app_2/bin/file1.sh") == "rwxr-xr-x"
assert "my_app_2/bin/file2.sh" in all_files
Expand All @@ -294,7 +294,7 @@ def test_file_permission_change_via_user_commands(self):
app_build_name = "my_app_2_1_1_2_1.tgz"
assert os.path.isfile(app_build_name)

_, _, all_files, all_folders = self.extract_app_build(app_build_name)
_, _, all_files, _ = self.extract_app_build(app_build_name)
assert "my_app_2/bin/file1.sh" in all_files
assert get_file_permissions("my_app_2/bin/file1.sh") == "rwxr-xr-x"
assert "my_app_2/bin/file2.sh" in all_files
Expand All @@ -320,7 +320,7 @@ def test_file_permission_change_via_user_commands_root_dir(self):
app_build_name = "my_app_2_1_1_2_1.tgz"
assert os.path.isfile(app_build_name)

_, _, all_files, all_folders = self.extract_app_build(app_build_name)
_, _, all_files, _ = self.extract_app_build(app_build_name)
assert "my_app_2/bin/file1.sh" in all_files
assert get_file_permissions("my_app_2/bin/file1.sh") == "rwxr-xr-x"
assert "my_app_2/bin/file2.sh" in all_files
Expand Down

0 comments on commit 9014772

Please sign in to comment.