-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: options endpoint does not invoke lambda (#1434) #1464
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
Conversation
|
I'm not entirely sure how to write a test for this, I'm brand new to this project (and python actually). When I run From reading the code, I don't see why this bug that is fixed here wouldn't have failed the |
|
| When I run make test I get a bunch of INTERNALERROR lines. Are you using a venv? What python version are you installed into (should be python3.7 or greater)? I don't think I have seen this before. Couple things to do,
If non-of that works, can you paste in one of the failures, so I can see the stack trace? | From reading the code, I don't see why this bug that is fixed here wouldn't have failed the TestService_FlaskDefaultOptionsDisabled test. Most likely because this was a functional tests and we are not currently running any of them in appveyor :( | I'm not entirely sure how to write a test for this, I'm brand new to this project (and python actually). This should update any unit tests and add one if needed. The unit tests for this class are found We should make sure the follow integ tests cases are covered:
The integ tests can be found If you need further help, just let me know. |
|
@jfuss you can see on the appveyor builds the error I'm talking about. Ends with: |
|
@gordonmleigh That is defiantly weird and something I haven't seen before. We are working on making the test suite more reliable. Can you update from HEAD of develop? Hoping some of things just goes away with the recent work we have been doing. |
2cc5e91 to
33810a8
Compare
|
@jfuss ah right sorry thought I had updated before getting back to you but was pulling from my own fork. I'll add the tests shortly, thanks for your help. FYI I think the error is related to the pytest version, I see you've updated to 3.6.0 from 3.1.0 in requirements/dev.txt. The missing functionality was added in 3.6.0 (see pytest-dev/pytest@4914135fd). |
|
@jfuss I can't run the integration tests now, due to the following error: Same story if I run on develop HEAD. Any ideas? |
|
@gordonmleigh My hunch is that its something with pytest and unittest (found some issue last night when helping someone else with this exact issue but can't seem to find it at the moment). What ended up working for her was upgraded from 3.7.2 to 3.7.4. Can you give that a try? From your recent error, it's comming from the python std lib (unittest). |
|
@gordonmleigh Also double check the pytest version that is installed on your system. For whatever reason, when the other person I was helping upgraded pytest to what is was in the |
|
#1649 was approved and was targeting the same bug. Closing this one in favor of the newer one. |
Issue #, if available: #1434
Description of changes: PR #1242 introduced a bug that means lambdas do not get called for OPTIONS requests, even if configured.
Checklist:
make prpassesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.