-
Notifications
You must be signed in to change notification settings - Fork 42
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
Multiple HTTP writes fail #111
Comments
I had a look at your |
Thanks! In that case, Mocket should honor the semantics of HTTP that a When the client signals a |
Good morning, yesterday night I made a few changes which fixed your issue, but broke other test cases. I hope I'll be able to sort everything out. |
Hi Giorgio, I've also spent some time on further researching this issue last night. In the meanwhile, I am not so sure that The usocket documentation says
That's actually the reason From looking at this, I figure that, when invoked on MicroPython, So, I am inclined to believe that talking to a HTTP server like implemented through The socket mocking machinery applied by the other popular contender So, while I appreciate your investigations, we might just recommend using With kind regards, |
For now, I am flagging it as |
Hi @amotl, I've got good news for you, Micropython's folks. |
Here you are: |
@amotl This is your test added to |
Dear Giorgio,
Introduction
Our background is that we are currently building a test suite based on CPython/Pytest for invoking MicroPython programs, see also micropython/micropython#5786 and micropython/micropython#4955. It works pretty good so far. Thanks again for Mocket, it helped us tremendously already.
Problem
So, after successfully creating a Pytest LoRa socket mock fixture, we are now struggling creating a corresponding thing for the urequests module.
The gist is that
urequests
will work like that:which makes Mocket only see the first line:
so that it will croak with the following exception.
Exception
Reproduction
I have been able to create a repro using pytest.
https://gist.github.com/amotl/015ef6b336db55128798d7f1a9a67dea
Thoughts
I believe @sjaensch observed this within #66 already and apparently #67 didn't fix it yet.
Thanks already for looking into this!
With kind regards,
Andreas.
The text was updated successfully, but these errors were encountered: