-
Notifications
You must be signed in to change notification settings - Fork 33
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 pad-array protocol #1266
Add pad-array protocol #1266
Conversation
tests/test_url_config.py
Outdated
@@ -391,3 +391,10 @@ def test_run_doc_protocol(self): | |||
self.st.set_config({ 'test_config': "run_doc://mode?run_id=plugin.run_id" }) | |||
p = self.st.get_single_plugin(999999999, 'test_data') | |||
return p.test_config | |||
|
|||
def test_pad_array(self): | |||
self.st.set_config({'test_config': 'pad-array://json://[1,2,3]?pad_left=2&pad_right=3&pad_value=0'}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (108 > 100 characters)
Looks good. Thanks for the quick implementation. |
I was trying to test this protocol but I am a bit confused as to why it is in the xe1t_url_config and not in the normal url_config file, is there something I am missing here? |
I successfully used the protocol to process some nv records so this is ready to be merged |
@LuisSanchez25 If you tested this, can you add your review? thanks. |
Adds a URLConfig protocol wich will pad an array on the left or right or both with a configurable number of elements of the specified value
The protocol accepts the arguments pad_left, pad_right and pad_value to specify how many elements to add and what value to fill them with.