-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️ Is638/dynamic sidecar refactors tests (round 3) #3154
♻️ Is638/dynamic sidecar refactors tests (round 3) #3154
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3154 +/- ##
========================================
- Coverage 81.1% 81.0% -0.1%
========================================
Files 711 711
Lines 30630 30646 +16
Branches 3948 3949 +1
========================================
+ Hits 24844 24853 +9
- Misses 4948 4951 +3
- Partials 838 842 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/models/domains/shared_store.py
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core/settings.py
Outdated
Show resolved
Hide resolved
@@ -53,7 +67,9 @@ def compose_spec(dynamic_sidecar_network_name: str) -> str: | |||
"services": { | |||
"first-box": { | |||
"image": "busybox", | |||
"networks": [dynamic_sidecar_network_name], | |||
"networks": [ | |||
dynamic_sidecar_network_name, |
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.
This is not the first time I see it, but what is the advantage in adding this comma?
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.
It is a visual aid. I add it to enforce black to create multiline so the json-like structure looks like yaml. That would be
services:
first-box:
image: busybox
networks:
- dynamic_sidecar_ntework_name
It helps me seeing better all sections since we are used to yaml more than json for the compose specs.
It is a small thing that I can also reverse
f75d152
to
1e4e3a1
Compare
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.
great! thanks!
Co-authored-by: Sylvain <[email protected]>
Co-authored-by: Sylvain <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Follows from PR #3152 (when you review this notice that, if the former PR is still not merged into master, the list of
Files changed
will also include its files).What do these changes do?
The main goal of the PR is to simplify the test infrastructure, in particular the fixtures that patch/mock env vars and functionality.
mock_environment
defines a base app config suitable for unit-testsapp
fixtureAppState
is a decorator class helperDY_VOLUME
global constant. Now in app.settings captured fromDY_VOLUME
env (i.e. syncs withDockerfile
)scripts/Makefile
recipe to display settings:make info
Related issue/s
How to test
CI
Checklist
make openapi-specs
,git commit ...
and thenmake version-*
)cd packages/postgres-database
,make setup-commit
,sc-pg review -m "my changes"