-
Notifications
You must be signed in to change notification settings - Fork 175
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
[api/test] raisinbread/test/api/LorisApiInstrumentsTest.php test not working incorrect #8781
Labels
Comments
driusan
added
Category: Bug
PR or issue that aims to report or fix a bug
Area: API
PR or issue related to the API
labels
Jun 14, 2023
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
to driusan/Loris
that referenced
this issue
Jun 21, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
driusan
added a commit
that referenced
this issue
Jul 4, 2023
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue #8781 was fixed by PR#8796.
Seems to be fixed by above |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
When attempting to test the difference between v0.0.3 and v0.0.4 of the API in
testGetCandidatesCandidVisitInstrumentsInstrument
I discovered that the test is not correct. It is testing that the response is a 200 and the body is not empty. However, getBody() is the object, so will always not be empty. It likely meant to testgetBody()->getContents()
not being empty. However, this would still pass incorrectly.The test is then calling json_decode on the body but not doing anything with the decoded value. The decode, in fact, fails, because the non-empty body being returned is:
The text was updated successfully, but these errors were encountered: