def test_category(): client = Client('test_id', 'test_secret') response = client.category(client.categories().json()[0]['id']) assert response.status_code == 200
def test_categories(): client = Client('test_idzz', 'test_secret') response = client.categories() assert response.status_code == 200
def test_category(): client = Client('test_id', 'test_secret') response = client.category(client.categories().json()[0]['id']) assert response.status_code == 200
def test_categories(): with patch('requests.get') as mock_requests_get: client = Client('myclientid', 'mysecret') client.categories() assert mock_requests_get.called
def test_categories(): client = Client('test_idzz', 'test_secret') response = client.categories() assert response.status_code == 200