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

Pickle fixes, and other changes #7

Merged
merged 1 commit into from Jan 28, 2021

Conversation

ashleysommer
Copy link
Member

@ashleysommer ashleysommer commented Jan 28, 2021

Sorry about bundling these all up, while fixing #3 I found some issues and fixed them all in one go.

… weird App pickling error seen when using TestManager (specifically on the ASGITestClient)

Add logic to remove the CookieJar from ASGITestClient before pickling, then add it back when unpickled. The cookie jar contains a ThreadLock which cannot be pickled.

Fixes sanic-org#3

Improve gather_request logic in TestClient and ASGITestClient, Fixes sanic-org#4

Change "before_server_end" to "before_server_stop". Fixes sanic-org#5

Fix return type on _sanic_endpoint_test, Fixes sanic-org#6

Fixes sanic-org#6
@ahopkins
Copy link
Member

ahopkins commented Jan 28, 2021

I pulled the branch and had some failing tests. I will try and get CI setup today. See #8. Also, I ran sanic:master against this PR and it also had some failing tests. 😒

@ashleysommer
Copy link
Member Author

Yeah, this won't work against sanic master until after sanic/#2009 is merged.

Try it again now that's it's merged?

@ahopkins
Copy link
Member

ahopkins commented Jan 28, 2021

I thought I had. I went too fast and didn't realize that my git pul is not the same as git pull 😆

Sanic master with this branch.

703 passed, 4 skipped, 9 warnings in 52.77s

@ahopkins
Copy link
Member

And this project's tests:

8 passed, 1 warning in 0.04s 

@ahopkins ahopkins merged commit e4d33f9 into sanic-org:master Jan 28, 2021
@ahopkins
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants