diff --git a/pytest.ini b/pytest.ini index a757f5e2..dd934a23 100644 --- a/pytest.ini +++ b/pytest.ini @@ -21,4 +21,3 @@ env = D:SUBGRAPH_URLS={{"8996": "http://localhost:9000"}} D:AQUARIUS_URL=http://localhost:5000 D:EVENTS_MONITOR_SLEEP_TIME=10 - D:ACCOUNT_PURGATORY_URL=https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-accounts.json diff --git a/tests/test_purgatory.py b/tests/test_purgatory.py index aadd2bd0..d7d78531 100644 --- a/tests/test_purgatory.py +++ b/tests/test_purgatory.py @@ -135,8 +135,11 @@ def test_purgatory_retrieve_new_list(events_object): assert purgatory.retrieve_new_list("env") == set() -def test_purgatory_retrieve_account_list(events_object): +def test_purgatory_retrieve_account_list(events_object, monkeypatch): + # set account purgatory filtering for accounts + monkeypatch.setenv('ACCOUNT_PURGATORY_URL', "https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-accounts.json") purgatory = Purgatory(events_object._es_instance) + result = purgatory.retrieve_new_list("ACCOUNT_PURGATORY_URL") print(f"result from retrieve new list: {result}") assert result