-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(python): add support for Python 3.13 (#736)
Closes reanahub/reana#837
- Loading branch information
Showing
6 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of REANA. | ||
# Copyright (C) 2024 CERN. | ||
# | ||
# REANA is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""REANA API utils tests.""" | ||
|
||
import pytest | ||
|
||
from reana_client.api.utils import get_content_disposition_filename | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"content_disposition_header, expected_filename", | ||
[ | ||
("inline", "downloaded_file"), | ||
("attachment", "downloaded_file"), | ||
('attachment; filename="example.txt"', "example.txt"), | ||
("attachment; filename*=UTF-8''example.txt", "example.txt"), | ||
("attachment; filename=folder", "folder"), | ||
('attachment; filename="folder/*/example.txt"', "folder/*/example.txt"), | ||
], | ||
) | ||
def test_get_content_disposition_filename( | ||
content_disposition_header, expected_filename | ||
): | ||
assert ( | ||
get_content_disposition_filename(content_disposition_header) | ||
== expected_filename | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters