Skip to content

Commit

Permalink
nox -s format
Browse files Browse the repository at this point in the history
  • Loading branch information
adal-chiriliuc-reef committed Apr 24, 2024
1 parent 2f60683 commit 8a76bc6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/unit/console_tool/test_notification_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

import pytest


COMMANDS = (["bucket", "notification-rule"], ["notification-rules"])


@pytest.fixture()
def bucket_notification_rule(b2_cli, bucket):
rule = {
Expand Down Expand Up @@ -70,6 +70,7 @@ def test_notification_rules__list_all(b2_cli, bucket, bucket_notification_rule):
"""
)


def test_notification_rules__list_all_json(b2_cli, bucket, bucket_notification_rule):
for command in COMMANDS:
_, stdout, _ = b2_cli.run([
Expand Down Expand Up @@ -266,6 +267,6 @@ def test_notification_rules__sign_secret(b2_cli, bucket, bucket_notification_rul
bucket_notification_rule["targetConfiguration"]["hmacSha256SigningSecret"] = "7" * 32
assert json.loads(stdout) == bucket_notification_rule

assert json.loads(
b2_cli.run([*command, "list", "--json", f"b2://{bucket}"],)[1]
) == [bucket_notification_rule]
assert json.loads(b2_cli.run([*command, "list", "--json", f"b2://{bucket}"],)[1]) == [
bucket_notification_rule
]

0 comments on commit 8a76bc6

Please sign in to comment.