I have seen a couple of questions on this problem, but the answers for them do not work for me. I am having the check50 problem on pset7 with check50 not finding 112.00. One answer was to use usd in the form which I have, another was to redirect to /index when the buy is submitted, which is the way my code was written. Decided to test staff's website side by side with mine to see if there were differences in their behavior and mine. I bought BA stock, all the behavior looked the same except the staff website showed a price of 327.84, and mine was 327.88. I checked yahoo online, it showed 327.88, also checked Alpha Vantage, also had 327.88 and checked a couple others such as Bloomberg, all had 327.88. But I am quessing somehow the check50 is using a fixed file to get prices otherwise it could not be always 112.00 for four shares. However, whatever caused the disagreement real time could cause the same during the test. Does anyone have another idea? Below is what check50 shows:
:( buy handles valid purchase
expected to find "112.00" in page, but it wasn't found
Log
sending POST request to /login
sending POST request to /buy
checking that "112.00" is in page