From 23e431756553637e9267987b57d3c89165549ffd Mon Sep 17 00:00:00 2001 From: Daniel Conde Diehl Date: Tue, 23 Dec 2025 13:13:53 -0500 Subject: [PATCH] Fixing create_step_attachment method --- .gitignore | 1 + zephyr/scale/server/endpoints/endpoints.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8f4dc5c..4d2f9de 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Pipfile.lock +.idea/ diff --git a/zephyr/scale/server/endpoints/endpoints.py b/zephyr/scale/server/endpoints/endpoints.py index 03b1fec..b62255d 100644 --- a/zephyr/scale/server/endpoints/endpoints.py +++ b/zephyr/scale/server/endpoints/endpoints.py @@ -45,7 +45,7 @@ def get_step_attachments(self, test_case_key, step_index): def create_step_attachment(self, test_case_key, step_index, file_path): """Create a new attachment on the specified Step of a Test Case""" - return self.session.post(Paths.CASE_STP_ATTACH.format(test_case_key, step_index), + return self.session.post_file(Paths.CASE_STP_ATTACH.format(test_case_key, step_index), file_path) def search_cases(self, query, **params):