-
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
build: convert pact verification to unit test framework method #325
Conversation
Codecov Report
@@ Coverage Diff @@
## master #325 +/- ##
==========================================
- Coverage 95.35% 94.53% -0.83%
==========================================
Files 25 27 +2
Lines 2971 2999 +28
Branches 160 161 +1
==========================================
+ Hits 2833 2835 +2
- Misses 120 146 +26
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
c0b3aac
to
7550138
Compare
@@ -47,6 +47,6 @@ skip= | |||
edxval/wsgi.py | |||
|
|||
[tool:pytest] | |||
DJANGO_SETTINGS_MODULE = edxval.settings.base | |||
DJANGO_SETTINGS_MODULE = edxval.settings.test |
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.
How are we providing django settings settings while running pact with pytest
?
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.
like we did with LMS, by exporting the settings module env variable before executing the verify call.
Can you update the readme for pact verification process with the updated steps to run? |
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.
Forgot to confirm this review before. Just a question, the rest looks good to me.
edxval/settings/pact.py
Outdated
PUBLISH_VERIFICATION_RESULTS = os.environ.get('PUBLISH_VERIFICATION_RESULTS', 'False').lower() in ('true', 'yes', '1') | ||
PROVIDER_STATES_SETUP_VIEW_URL = True | ||
PROVIDER_BASE_URL = 'http://127.0.0.1:8000' | ||
PROVIDER_STATES_URL = '{}/edxval/pact/provider_states/'.format(PROVIDER_BASE_URL) |
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.
Are we using this anywhere anymore? If not, this can be removed.
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.
Yes, nice catch.
b3d1c2a
to
f815909
Compare
PROD-2562
Description