Skip to content

Accept strings for xsd base64Binary#1072

Merged
mvantellingen merged 3 commits intomvantellingen:mainfrom
superzaro:accept_strings_for_xsd_Base64binary
Nov 3, 2022
Merged

Accept strings for xsd base64Binary#1072
mvantellingen merged 3 commits intomvantellingen:mainfrom
superzaro:accept_strings_for_xsd_Base64binary

Conversation

@superzaro
Copy link
Copy Markdown

According to issue it would be nice if a value for an element of type xsd:base64Binary could be passed already encoded as string. Since accepted_types = six.string_types in Base64Binary I suggest the same solution as for the mentioned Datetime issue (passing datetime as string).
By the way I fixed to missing assert statements.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2020

Codecov Report

Merging #1072 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1072   +/-   ##
=======================================
  Coverage   89.34%   89.35%           
=======================================
  Files          65       65           
  Lines        4845     4847    +2     
  Branches      850      851    +1     
=======================================
+ Hits         4329     4331    +2     
  Misses        333      333           
  Partials      183      183           
Impacted Files Coverage Δ
src/zeep/xsd/types/builtins.py 97.17% <100.00%> (+0.02%) ⬆️

@mvantellingen mvantellingen merged commit 5a06276 into mvantellingen:main Nov 3, 2022
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.

2 participants