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

Add class to construct XML elements from scratch using the SchemaDict #159

Merged
merged 8 commits into from May 2, 2022

Conversation

janssenhenning
Copy link
Contributor

No description provided.

This information
can of course also be extracted from the xpath key but when using
the `tag_info()` method this information has to gathered differently
schema dict from scratch

Subclasses `lxml.builder.ElementMaker` and adds case-insensitivity and
type conversion from our converters on top
@janssenhenning janssenhenning added enhancement New feature or request xml-functions labels May 2, 2022
pre-commit-ci bot and others added 4 commits May 2, 2022 08:23
`convert_to_xml` is now more strict. int conversion uses the d format specifier
string conversion is no longer always attempted. Only if the given value
is already a string and all other conversions failed the string is accepted
@janssenhenning janssenhenning marked this pull request as ready for review May 2, 2022 08:27
@codecov
Copy link

codecov bot commented May 2, 2022

Codecov Report

Merging #159 (69ce1da) into develop (d93f9f5) will increase coverage by 0.03%.
The diff coverage is 89.04%.

@@             Coverage Diff             @@
##           develop     #159      +/-   ##
===========================================
+ Coverage    84.18%   84.21%   +0.03%     
===========================================
  Files          132      134       +2     
  Lines        24396    24451      +55     
===========================================
+ Hits         20537    20592      +55     
  Misses        3859     3859              

@janssenhenning janssenhenning merged commit 85106aa into develop May 2, 2022
@janssenhenning janssenhenning deleted the feature/schema-add-tag-name-to-info branch May 2, 2022 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request xml-functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant