diff --git a/tests.py b/tests.py index c16d60bfe2dcff1427962194c7f8e6023a7c69cb..6857a32a2a7b01436b1523862fd2c0d7ff9ab0ff 100644 --- a/tests.py +++ b/tests.py @@ -98,12 +98,11 @@ def test_prepare_environment(tmp_path): # check if the git branch is correctly checked out. We expect output such as # git_branch_stdout = '* dev-23a\n develop\n' # The entry with the '* ' prefix is the active branch. - git_branch_output_raw = \ - subprocess.run( - f"cd {str(release_base_dir/spack_environments)} && git branch", - shell=True, - capture_output=True, - ) + git_branch_output_raw = subprocess.run( + f"cd {str(release_base_dir/spack_environments)} && git branch", + shell=True, + capture_output=True, + ) git_branch_stdout = git_branch_output_raw.stdout.decode("utf-8") assert f"* {mpsd_release_to_test}" in git_branch_stdout