Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when issuing TSO commands #257

Merged
merged 3 commits into from
Mar 13, 2024
Merged

Conversation

t1m0thyj
Copy link
Member

Fixes #255 and updates the system test for Tso.issue_command to verify that the response is successful

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.88%. Comparing base (a8c5794) to head (35c9c0b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #257      +/-   ##
==========================================
+ Coverage   83.83%   84.88%   +1.04%     
==========================================
  Files          34       34              
  Lines        2116     2124       +8     
==========================================
+ Hits         1774     1803      +29     
+ Misses        342      321      -21     
Flag Coverage Δ
unittests 84.88% <100.00%> (+1.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @t1m0thyj 😁

@traeok traeok merged commit 95d7986 into main Mar 13, 2024
24 checks passed
@traeok traeok deleted the fix/issue-tso-command-error branch March 13, 2024 19:35
Copy link

Release succeeded for the main branch. 🎉

The following packages have been published:

  • pypi: zowe-1.0.0.dev15
  • pypi: zowe_core_for_zowe_sdk-1.0.0.dev15
  • pypi: zowe_zos_console_for_zowe_sdk-1.0.0.dev15
  • pypi: zowe_zos_files_for_zowe_sdk-1.0.0.dev15
  • pypi: zowe_zos_jobs_for_zowe_sdk-1.0.0.dev15
  • pypi: zowe_zos_tso_for_zowe_sdk-1.0.0.dev15
  • pypi: zowe_zosmf_for_zowe_sdk-1.0.0.dev15

Powered by Octorelease 🚀

Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 😋


@mock.patch("requests.Session.send")
def test_issue_command(self, mock_send_request):
"""Test issuing a command sends a request"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change the test description to something like should ... ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to list user details using send_tso_message() with the Zowe SDK version 1.0.0.dev10
4 participants