Beispiel #1
0
def test_category():
    client = Client('test_id', 'test_secret')
    response = client.category(client.categories().json()[0]['id'])
    assert response.status_code == 200
Beispiel #2
0
def test_categories():
    client = Client('test_idzz', 'test_secret')
    response = client.categories()
    assert response.status_code == 200
Beispiel #3
0
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
Beispiel #5
0
def test_categories():
    client = Client('test_idzz', 'test_secret')
    response = client.categories()
    assert response.status_code == 200