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

Wildcard #236

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from
Draft

Wildcard #236

wants to merge 31 commits into from

Conversation

fabiocaccamo
Copy link
Owner

@fabiocaccamo fabiocaccamo commented Jan 18, 2023

Fix #113

milhauzindahauz and others added 29 commits September 12, 2022 23:49
type_util.py - add wildcard index, add only dicts check
__init__.py - clean naive test run
keylist_dict.py - add condition for wildcard key
keylist_util.py - enhance condition for wildcard
tests - modify test
remove unnecessary imports
simplify condition
rename function, rename variable
use util function
change conditions blocks
remove print function from test
add wildcard regex, change _split_key_indexes() to use it
fixes TypeError benedict methods (e.g. swap())
build few tests, move wildcard test to separate test file
add is_list to is_list_of_dicts
change tests
fix test
add condition for wildcard in keys
implements returning whole list if using wildcard without any other property
add any_wildcard_in_list method
delete items in list with wildcard
get list by wildcard
add a bunch of tests
empty existing array instead of creating new one
change conditions order
add test for multiple wildcards in row
test for wildcard symbol as key
implements behavior for wildcard chaining, add tests for that
change behavior, modify test according to it, small refactor of if blocks
@fabiocaccamo fabiocaccamo added the enhancement New feature or request label Jan 18, 2023
@fabiocaccamo fabiocaccamo self-assigned this Jan 18, 2023
@fabiocaccamo fabiocaccamo marked this pull request as draft January 18, 2023 10:10
@codecov
Copy link

codecov bot commented Feb 1, 2023

Codecov Report

Base: 96.93% // Head: 97.02% // Increases project coverage by +0.09% 🎉

Coverage data is based on head (30f8914) compared to base (1280a81).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
+ Coverage   96.93%   97.02%   +0.09%     
==========================================
  Files          57       57              
  Lines        1695     1748      +53     
==========================================
+ Hits         1643     1696      +53     
  Misses         52       52              
Flag Coverage Δ
unittests 97.02% <100.00%> (+0.09%) ⬆️

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

Impacted Files Coverage Δ
benedict/dicts/__init__.py 100.00% <ø> (ø)
benedict/dicts/keylist/keylist_dict.py 100.00% <100.00%> (ø)
benedict/dicts/keylist/keylist_util.py 100.00% <100.00%> (ø)
benedict/dicts/keypath/keypath_util.py 100.00% <100.00%> (ø)
benedict/utils/type_util.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

Wildcard support for renaming
2 participants