Skip to content
Snippets Groups Projects
Commit 714e65f0 authored by Justus Müller's avatar Justus Müller :bee:
Browse files

refactor: Split very long lines

parent 766cdaf3
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,8 @@ class HashTest(DecisionTest): ...@@ -37,7 +37,8 @@ class HashTest(DecisionTest):
# remember a cluster of a random file # remember a cluster of a random file
# if the cluster is set to zero immediately after deletion, # if the cluster is set to zero immediately after deletion,
# the likelyhood of DRAT or DZAT is very high # the likelyhood of DRAT or DZAT is very high
compare_cluster_number: int = self.drive_handle.get_clusters_for_file(f'{self.drive_handle.get_path()}demo\\t5\\000503.text')[0] demo_file_path: str = f'{self.drive_handle.get_path()}demo\\t5\\000503.text'
compare_cluster_number: int = self.drive_handle.get_clusters_for_file(demo_file_path)[0]
compare_cluster_values: bytes = self.drive_handle.read_cluster(compare_cluster_number) compare_cluster_values: bytes = self.drive_handle.read_cluster(compare_cluster_number)
print(colored("[HashTest] Deleting the demo files.", 'light_grey')) print(colored("[HashTest] Deleting the demo files.", 'light_grey'))
......
...@@ -85,7 +85,7 @@ class SlackTest(DecisionTest): ...@@ -85,7 +85,7 @@ class SlackTest(DecisionTest):
print(colored("[SlackTest] All bytes are zero!", "red")) print(colored("[SlackTest] All bytes are zero!", "red"))
print(colored("[SlackTest] Cleaning up files.", "light_grey")) print(colored("[SlackTest] Cleaning up files.", "light_grey"))
self.drive_handle.delete_file(f'{self.drive_handle.get_path()}transsd-slacktest-overwrite') self.drive_handle.delete_file(overwrite_file_path)
self.drive_handle.flush_cache() self.drive_handle.flush_cache()
print(colored("[SlackTest] Slack test completed.", "light_blue")) print(colored("[SlackTest] Slack test completed.", "light_blue"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment