Skip to content

Commit

Permalink
black.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Apr 9, 2024
1 parent 5dee890 commit 0814aba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions aquarius/events/purgatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ def update_lists(self):

for acc_id, reason in new_accounts_for_purgatory:
assets = self.get_assets_authored_by(acc_id)
logger.info(
f"PURGATORY: assets: {assets}"
)
logger.info(f"PURGATORY: assets: {assets}")
for asset in assets:
self.update_asset_purgatory_status(asset, reason=reason)
self.reference_account_list.add((acc_id, reason))
Expand Down
8 changes: 6 additions & 2 deletions tests/test_purgatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@ def test_purgatory_with_assets(client, base_ddo_url, events_object, monkeypatch)
assert published_ddo["purgatory"]["state"] is False


def test_get_assets_authored_by_account(client, base_ddo_url, events_object, monkeypatch):
def test_get_assets_authored_by_account(
client, base_ddo_url, events_object, monkeypatch
):
monkeypatch.setenv(
"ACCOUNT_PURGATORY_URL",
"https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-accounts.json",
)
purgatory = Purgatory(events_object._es_instance)
print(purgatory.get_assets_authored_by("0x279e112d0D182A7234Fe11D0363B3C6f2edd71e4"))
print(
purgatory.get_assets_authored_by("0x279e112d0D182A7234Fe11D0363B3C6f2edd71e4")
)


def test_purgatory_with_accounts(client, base_ddo_url, events_object, monkeypatch):
Expand Down

0 comments on commit 0814aba

Please sign in to comment.