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

Make it possible to configure publisher with a dictionary of settings #35

Merged
merged 17 commits into from
Nov 16, 2021

Conversation

pnuu
Copy link
Member

@pnuu pnuu commented Sep 1, 2021

To make publisher selection easier for the user, this PR adds an utility function that selects the publisher based on the given settings.

@pnuu pnuu requested a review from mraspaud September 1, 2021 06:23
@pnuu pnuu self-assigned this Sep 1, 2021
@codecov
Copy link

codecov bot commented Sep 1, 2021

Codecov Report

Merging #35 (4806a10) into main (e06e90e) will increase coverage by 0.93%.
The diff coverage is 98.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
+ Coverage   78.57%   79.50%   +0.93%     
==========================================
  Files          15       15              
  Lines        1792     1888      +96     
==========================================
+ Hits         1408     1501      +93     
- Misses        384      387       +3     
Impacted Files Coverage Δ
posttroll/publisher.py 96.89% <97.14%> (-0.19%) ⬇️
posttroll/tests/test_pubsub.py 95.22% <98.57%> (+0.88%) ⬆️
posttroll/listener.py 87.50% <0.00%> (-1.39%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e06e90e...4806a10. Read the comment docs.

@pnuu pnuu marked this pull request as ready for review September 2, 2021 12:36
Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

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

LGTM. I'm not really happy with the tests checking how Publisher is called, it feels like we are testing the implementation rather than the behaviour of the class. But I think that making Publisher testable needs much more work than is reasonable within the scope of this PR, so I'm merging this.

@mraspaud mraspaud merged commit 3ec4fc7 into pytroll:main Nov 16, 2021
@pnuu pnuu deleted the feature-publisher-dict_config branch November 22, 2021 11:19
gerritholl added a commit to gerritholl/pytroll-cspp-runner that referenced this pull request Dec 22, 2021
Add an option to use publisher configuration from a file.
Needs merger of posttroll #35
pytroll/posttroll#35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants