Skip to content

Commit

Permalink
Updated test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Jan 17, 2024
1 parent 8282801 commit 179654c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/test_purgatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,15 @@ def test_purgatory_retrieve_account_list(events_object, monkeypatch):
purgatory = Purgatory(events_object._es_instance)

result = purgatory.retrieve_new_list("ACCOUNT_PURGATORY_URL")

assert result
assert list(result)[0] == (
"0x279e112d0D182A7234Fe11D0363B3C6f2edd71e4",
"test account",
)

filter_by_address = {
x["reason"]
for x in result
if x["address"] == "0xAD23fC9D943018C34aC55E8DA29AF700A2Fd0FeB"
}
assert len(filter_by_address) == 1
assert list(filter_by_address)[0] == "bad actor"


def test_failures(events_object):
Expand Down

0 comments on commit 179654c

Please sign in to comment.