Tests#

class unify.tests.TestAsyncUnify(methodName='runTest')#

Bases: IsolatedAsyncioTestCase

setUp()#

Hook method for setting up the test fixture before exercising it.

Return type:

None

async test_generate_returns_generator_when_stream_true()#
Return type:

None

async test_generate_returns_string_when_stream_false()#
Return type:

None

async test_incorrect_model_name_raises_internal_server_error()#
Return type:

None

async test_invalid_api_key_raises_authentication_error()#
Return type:

None

async test_missing_api_key_raises_key_error(mock_get)#
Return type:

None

class unify.tests.TestUnify(methodName='runTest')#

Bases: TestCase

setUp()#

Hook method for setting up the test fixture before exercising it.

Return type:

None

test_generate_returns_generator_when_stream_true()#
Return type:

None

test_generate_returns_string_when_stream_false()#
Return type:

None

test_incorrect_model_name_raises_internal_server_error()#
Return type:

None

test_invalid_api_key_raises_authentication_error()#
Return type:

None

test_missing_api_key_raises_key_error(mock_get)#
Return type:

None