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

Fix test of api/ url in test.py #88

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

pbchase
Copy link
Contributor

@pbchase pbchase commented Dec 13, 2023

Addresses issue #65

@pbchase pbchase requested a review from ChemiKyle December 13, 2023 03:09
@ChemiKyle
Copy link
Contributor

This results in a passing test where it should likely actually fail. Essentially, this declares that an HTTPError is the desired result.

@ChemiKyle ChemiKyle closed this Feb 27, 2024
@pbchase
Copy link
Contributor Author

pbchase commented Feb 27, 2024

Essentially, this declares that an HTTPError is the desired result.

Why would an HTTP error not be the desired result? When you tap /api/ with no post it returns an HTTP error. yo can try this at https://redcap.ctsi.ufl.edu/redcap/api/

So that is REDCap behaving as expected. Your PR, PR #93, keeps the code from crashing (a good thing), but the test always fails on a properly configured REDCap system.

@pbchase pbchase reopened this Feb 27, 2024
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.

2 participants