Skip to content

Commit 6bbba9c

Browse files
style: linting
1 parent fa79bf4 commit 6bbba9c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

juju/secrets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def create_secret_data(args):
2727
"""
2828
data = {}
2929
for val in args:
30-
key, _, value = val.partition('=')
30+
key, _, value = val.partition("=")
3131
if not key or not value:
3232
raise ValueError(f"Invalid key value {val}")
3333

tests/unit/test_secrets.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313

1414
class TestCreateSecretData:
15-
@pytest.mark.parametrize("keyval", ["foo", "=bar", "baz=", "f=bar", "fo=bar", "foo_bar=baz"])
15+
@pytest.mark.parametrize(
16+
"keyval", ["foo", "=bar", "baz=", "f=bar", "fo=bar", "foo_bar=baz"]
17+
)
1618
def test_bad_key(self, keyval: str):
1719
with pytest.raises(ValueError):
1820
create_secret_data([keyval])
@@ -27,7 +29,7 @@ def test_bad_key(self, keyval: str):
2729
("equalsign==", "equalsign", "PQ=="),
2830
("equalsign#base64=PQ==", "equalsign", "PQ=="),
2931
("pq-identity-theorem=P===Q", "pq-identity-theorem", "UD09PVE="),
30-
]
32+
],
3133
)
3234
def test_goo_key_values(self, keyval: str, expected_key: str, expected_val: str):
3335
actual = create_secret_data([keyval])

0 commit comments

Comments
 (0)