Skip to content

Commit

Permalink
Fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Oct 17, 2024
1 parent dc99b92 commit 5f5153e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions playbooks/roles/nfd/molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
def test_get_nfd_ready_nodes(host):
for resource in ["deployment/nfd-master", "daemonset/nfd-worker"]:
assert host.run(
"/usr/local/bin/kubectl rollout status "
+ resource
+ " --namespace node-feature-discovery"
f"/usr/local/bin/kubectl rollout status {resource}"
" --namespace node-feature-discovery"
" --timeout=3m"
).succeeded
for item in [
Expand All @@ -28,10 +27,9 @@ def test_get_nfd_ready_nodes(host):
]:
assert (
host.run(
"/usr/local/bin/kubectl get "
+ item["type"]
+ " --namespace node-feature-discovery"
" -o jsonpath='{.items[0].status." + item["metric"] + "}'"
f"/usr/local/bin/kubectl get {item['type']}"
" --namespace node-feature-discovery"
" -o jsonpath='{.items[0].status.{item['metric']}}'"
).stdout
== "1" # noqa: W503
)
2 changes: 1 addition & 1 deletion tests/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

for i in range(random.randint(600, 3600)):
os.system("sleep 1")
print(f"Running for {i+1} secs")
print(f"Running for {i + 1} secs")

0 comments on commit 5f5153e

Please sign in to comment.