Skip to content

Commit

Permalink
Apply style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbuzzi committed Oct 4, 2024
1 parent aa0775f commit f7730cd
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions actions/testmo-create-resources/compose_testmo_resources_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,36 @@
import subprocess

if __name__ == "__main__":

# command line arguments
args_parser = argparse.ArgumentParser()

args_parser.add_argument(
"-j",
"--resources_json",
help="string version of JSON identifying resource fields",
type=str)
type=str,
)

args_parser.add_argument(
"-d",
"--destination",
help="absolute path for where to generate the file,",
type=str)
type=str,
)

args = args_parser.parse_args()
fields = json.loads(args.resources_json)

for field in fields:
testmo_args = [
"--resources", f"{args.destination}",
"--name", f"{field}",
"--type", "string",
"--value", f"{fields[field]}"
"--resources",
f"{args.destination}",
"--name",
f"{field}",
"--type",
"string",
"--value",
f"{fields[field]}",
]
testmo_command = ["npx", "testmo", "automation:resources:add-field"]
full_command = testmo_command + testmo_args
Expand Down

0 comments on commit f7730cd

Please sign in to comment.