Twisted gateway test case

View: New views
4 Messages — Rating Filter:   Alert me  

Twisted gateway test case

by lists-144 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I noticed the Twisted gateway test isn't executed when I run python  
setup.py test. Is this on purpose or?

test_build (test_gateway.FaultTestCase) ... ok
test_create (test_gateway.FaultTestCase) ... ok
test_encode (test_gateway.FaultTestCase) ... ok
test_call (test_gateway.ServiceWrapperTestCase) ... ok
test_cmp (test_gateway.ServiceWrapperTestCase) ... ok
test_create (test_gateway.ServiceWrapperTestCase) ... ok
test_authenticate (test_gateway.ServiceRequestTestCase) ... ok
test_call (test_gateway.ServiceRequestTestCase) ... ok
test_create (test_gateway.ServiceRequestTestCase) ... ok
test_contains (test_gateway.ServiceCollectionTestCase) ... ok
test_add_service (test_gateway.BaseGatewayTestCase) ... ok
test_create (test_gateway.BaseGatewayTestCase) ... ok
test_get_response (test_gateway.BaseGatewayTestCase) ... ok
test_malformed_credentials_header  
(test_gateway.BaseGatewayTestCase) ... ok
test_process_request (test_gateway.BaseGatewayTestCase) ... ok
test_remove_service (test_gateway.BaseGatewayTestCase) ... ok
test_service_request (test_gateway.BaseGatewayTestCase) ... ok
test_bad_request  
(pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_request_method  
(pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_unknown_request  
(pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_bad_request  
(pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_request_method  
(pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_unknown_request  
(pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok

Thijs


Re: Twisted gateway test case

by lists-144 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah nevermind, I just found your comment in #66:

Tests for WSGI and Django are now in r401. Not sure atm how to run async requests (i.e. run Twisted tests) within the unittest framework, so that section is currently disabled.

Don't forget to open a ticket for that ;)

Thijs

On Nov 27, 2007, at 11:59 PM, Thijs Triemstra | Collab wrote:

I noticed the Twisted gateway test isn't executed when I run python setup.py test. Is this on purpose or?

test_build (test_gateway.FaultTestCase) ... ok
test_create (test_gateway.FaultTestCase) ... ok
test_encode (test_gateway.FaultTestCase) ... ok
test_call (test_gateway.ServiceWrapperTestCase) ... ok
test_cmp (test_gateway.ServiceWrapperTestCase) ... ok
test_create (test_gateway.ServiceWrapperTestCase) ... ok
test_authenticate (test_gateway.ServiceRequestTestCase) ... ok
test_call (test_gateway.ServiceRequestTestCase) ... ok
test_create (test_gateway.ServiceRequestTestCase) ... ok
test_contains (test_gateway.ServiceCollectionTestCase) ... ok
test_add_service (test_gateway.BaseGatewayTestCase) ... ok
test_create (test_gateway.BaseGatewayTestCase) ... ok
test_get_response (test_gateway.BaseGatewayTestCase) ... ok
test_malformed_credentials_header (test_gateway.BaseGatewayTestCase) ... ok
test_process_request (test_gateway.BaseGatewayTestCase) ... ok
test_remove_service (test_gateway.BaseGatewayTestCase) ... ok
test_service_request (test_gateway.BaseGatewayTestCase) ... ok
test_bad_request (pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_request_method (pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_unknown_request (pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_bad_request (pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_request_method (pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_unknown_request (pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok

Thijs
_______________________________________________
PyAMF dev mailing list - dev@...


Re: Twisted gateway test case

by Nick Joyce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is on purpose, for the time being. We need to find a way that we can run asynchronous requests in a synchronous way. The unittest framework does not cover this use-case (and there is no reason why it should). One way would be build the tests in trial and then fork a process to run that suite, whilst blocking the parent, listening for the return result. This is possible, but complicated and I was searching for a more convenient, less error prone solution.

I'll try and have a chat with the Twisted guys tomorrow.

On Tue, 2007-11-27 at 23:59 +0100, Thijs Triemstra | Collab wrote:
I noticed the Twisted gateway test isn't executed when I run python  
setup.py test. Is this on purpose or?

test_build (test_gateway.FaultTestCase) ... ok
test_create (test_gateway.FaultTestCase) ... ok
test_encode (test_gateway.FaultTestCase) ... ok
test_call (test_gateway.ServiceWrapperTestCase) ... ok
test_cmp (test_gateway.ServiceWrapperTestCase) ... ok
test_create (test_gateway.ServiceWrapperTestCase) ... ok
test_authenticate (test_gateway.ServiceRequestTestCase) ... ok
test_call (test_gateway.ServiceRequestTestCase) ... ok
test_create (test_gateway.ServiceRequestTestCase) ... ok
test_contains (test_gateway.ServiceCollectionTestCase) ... ok
test_add_service (test_gateway.BaseGatewayTestCase) ... ok
test_create (test_gateway.BaseGatewayTestCase) ... ok
test_get_response (test_gateway.BaseGatewayTestCase) ... ok
test_malformed_credentials_header  
(test_gateway.BaseGatewayTestCase) ... ok
test_process_request (test_gateway.BaseGatewayTestCase) ... ok
test_remove_service (test_gateway.BaseGatewayTestCase) ... ok
test_service_request (test_gateway.BaseGatewayTestCase) ... ok
test_bad_request  
(pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_request_method  
(pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_unknown_request  
(pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_bad_request  
(pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_request_method  
(pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_unknown_request  
(pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok

Thijs
_______________________________________________
PyAMF dev mailing list - dev@...
http://lists.pyamf.org/mailman/listinfo/dev

Re: Twisted gateway test case

by Nick Joyce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#99 :)

On Wed, 2007-11-28 at 00:03 +0100, Thijs Triemstra | Collab wrote:
Ah nevermind, I just found your comment in #66:


Tests for WSGI and Django are now in r401. Not sure atm how to run async requests (i.e. run Twisted tests) within the unittest framework, so that section is currently disabled.

Don't forget to open a ticket for that ;)

Thijs

On Nov 27, 2007, at 11:59 PM, Thijs Triemstra | Collab wrote:

I noticed the Twisted gateway test isn't executed when I run python setup.py test. Is this on purpose or?


test_build (test_gateway.FaultTestCase) ... ok
test_create (test_gateway.FaultTestCase) ... ok
test_encode (test_gateway.FaultTestCase) ... ok
test_call (test_gateway.ServiceWrapperTestCase) ... ok
test_cmp (test_gateway.ServiceWrapperTestCase) ... ok
test_create (test_gateway.ServiceWrapperTestCase) ... ok
test_authenticate (test_gateway.ServiceRequestTestCase) ... ok
test_call (test_gateway.ServiceRequestTestCase) ... ok
test_create (test_gateway.ServiceRequestTestCase) ... ok
test_contains (test_gateway.ServiceCollectionTestCase) ... ok
test_add_service (test_gateway.BaseGatewayTestCase) ... ok
test_create (test_gateway.BaseGatewayTestCase) ... ok
test_get_response (test_gateway.BaseGatewayTestCase) ... ok
test_malformed_credentials_header (test_gateway.BaseGatewayTestCase) ... ok
test_process_request (test_gateway.BaseGatewayTestCase) ... ok
test_remove_service (test_gateway.BaseGatewayTestCase) ... ok
test_service_request (test_gateway.BaseGatewayTestCase) ... ok
test_bad_request (pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_request_method (pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_unknown_request (pyamf.tests.gateway.test_wsgi.WSGIServerTestCase) ... ok
test_bad_request (pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_request_method (pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok
test_unknown_request (pyamf.tests.gateway.test_django.DjangoGatewayTestCase) ... ok


Thijs
_______________________________________________
PyAMF dev mailing list - dev@...
http://lists.pyamf.org/mailman/listinfo/dev


_______________________________________________
PyAMF dev mailing list - dev@...
http://lists.pyamf.org/mailman/listinfo/dev