Skip to content

Commit

Permalink
Fix tests for algo validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
calina-c committed Jun 2, 2022
1 parent e1fe259 commit 941c7e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocean_provider/validation/test/test_algo_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_passes_algo_ddo(provider_wallet, consumer_address, web3):
"serviceId": sa_compute.id,
"transferTxId": "alg_tx_id",
},
"environment": "ocean-compute"
}

def side_effect(*args, **kwargs):
Expand Down Expand Up @@ -88,6 +89,7 @@ def test_passes_raw(provider_wallet, consumer_address, web3):
"container": {"entrypoint": "node $ALGO", "image": "node", "tag": "10"},
},
},
"environment": "ocean-compute"
}

with patch(
Expand Down Expand Up @@ -246,6 +248,7 @@ def test_additional_datasets(provider_wallet, consumer_address, web3):
"transferTxId": "alg_tx_id",
},
"additionalDatasets": "",
"environment": "ocean-compute"
}

def side_effect(*args, **kwargs):
Expand Down Expand Up @@ -817,6 +820,7 @@ def test_success_multiple_services_types(provider_wallet, consumer_address, web3
"additionalDatasets": [
{"documentId": ddo.did, "transferTxId": "ddo.did", "serviceId": "access_1"}
],
"environment": "ocean-compute"
}

def side_effect(*args, **kwargs):
Expand Down

0 comments on commit 941c7e5

Please sign in to comment.