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

Support different types of bytes input #82

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Support different types of bytes input #82

merged 1 commit into from
Nov 17, 2023

Conversation

robin-nitrokey
Copy link
Member

Previously, we required bytes input as a BufferedReader. With this patch, we also accept FileIO and bytes instances, as supported by the generated API client.

Fixes: #63

@robin-nitrokey robin-nitrokey requested a review from q-nk November 17, 2023 11:40
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (bcaaedb) 79.54% compared to head (0b1e288) 79.54%.

Files Patch % Lines
nethsm/__init__.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #82      +/-   ##
==========================================
- Coverage   79.54%   79.54%   -0.01%     
==========================================
  Files         751      751              
  Lines       13255    13258       +3     
==========================================
+ Hits        10544    10546       +2     
- Misses       2711     2712       +1     

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

Previously, we required bytes input as a BufferedReader.  With this
patch, we also accept FileIO and bytes instances, as supported by the
generated API client.

Fixes: #63
@robin-nitrokey robin-nitrokey merged commit ff2e185 into main Nov 17, 2023
@robin-nitrokey robin-nitrokey deleted the bytes-input branch November 17, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support different types of bytes input
2 participants