Beispiel #1
0
def test_start_compute_job_fails_empty(with_empty_client):
    """Tests failure of compute job from endpoint with empty response."""
    with pytest.raises(AssertionError):
        DataSP.start_compute_job(
            "some_did",
            "http://mock/",
            "some_consumer_address",
            "some_signature",
            "some_service_id",
            "some_tx_id",
            algorithm_did="some_algo_did",
        )
Beispiel #2
0
def test_start_compute_job_fails_error_response(with_evil_client):
    """Tests failure of compute job from endpoint with non-200 response."""
    with pytest.raises(ValueError):
        DataSP.start_compute_job(
            "some_did",
            "http://mock/",
            "some_consumer_address",
            "some_signature",
            "some_service_id",
            "some_tx_id",
            algorithm_did="some_algo_did",
        )