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

Pass service_query to _buildQueryStringForServiceCall instead of a Match #2134

Merged
merged 1 commit into from Oct 14, 2022

Conversation

veyndan
Copy link
Contributor

@veyndan veyndan commented Oct 10, 2022

In order to use the function, we must know that we need to pass a Match with a capture group at position 2. This is non-obvious.

In order to use the function, we must know that we need to pass a Match with a capture group at position 2.
This is non-obvious.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0005%) to 90.633% when pulling 7cddb8d on veyndan:buildQueryStringForServiceCall-match into 35e553b on RDFLib:main.

@aucampia
Copy link
Member

@veyndan thanks for the pull request, we try and avoid merging PRs that affect runtime behaviour if they don't have tests, so please add tests to this if you can, otherwise it will have to wait for someone else to get time to look at it and add tests.

@veyndan
Copy link
Contributor Author

veyndan commented Oct 13, 2022

@aucampia I'm not too sure what sort of additional test would make sense here. I would assume that such a refactoring is covered by the tests in test_service.py. To make sure of this, I passed in random arguments to _buildQueryStringForServiceCall and they failed as expected.

@aucampia
Copy link
Member

@aucampia I'm not too sure what sort of additional test would make sense here. I would assume that such a refactoring is covered by the tests in test_service.py

If this is only a refactor then yes, and actually it does seem to be only a refactor, apologies for not noticing. I will double check tomorrow night.

Copy link
Member

@aucampia aucampia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me and it is covered by existing tests. It also makes a lot more sense to pass a string than the match, thanks @veyndan

@aucampia aucampia merged commit 246031b into RDFLib:main Oct 14, 2022
@veyndan veyndan deleted the buildQueryStringForServiceCall-match branch October 14, 2022 19:43
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.

None yet

3 participants