test.mocks.MockCeleryClient

Here are the examples of the python api test.mocks.MockCeleryClient taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: cloudify-manager Source File: celery_client.py
Function: get_client
def get_client():
    if config.instance.test_mode:
        from test.mocks import MockCeleryClient
        return MockCeleryClient()
    else:
        return CeleryClient()