import pytest
from taskpool.client import TaskClient


@pytest.mark.parametrize('kwargs', [{'task_key': 'foo'}, {}])
def test_init_client(kwargs):
    tc = TaskClient(testing=True, **kwargs)
    assert tc.task_key == kwargs.get('task_key', 'task-pool')

7507a1a87c16ed11a331921890259ce48f5c5165
<mask token>

<mask token>


@pytest.mark.parametrize('kwargs', [{'task_key': 'foo'}, {}])
def test_init_client(kwargs):
    tc = TaskClient(testing=True, **kwargs)
    assert tc.task_key == kwargs.get('task_key', 'task-pool')

import pytest
from taskpool.client import TaskClient


@pytest.mark.parametrize('kwargs', [{'task_key': 'foo'}, {}])
def test_init_client(kwargs):
    tc = TaskClient(testing=True, **kwargs)
    assert tc.task_key == kwargs.get('task_key', 'task-pool')
