add poetry test scripts for each kind

This commit is contained in:
2023-08-10 19:13:34 +01:00
parent a635109308
commit 0f2fb7121d
4 changed files with 32 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
import os
import random
import sys
from dataclasses import dataclass
@@ -6,8 +7,10 @@ import vban_cmd
from vban_cmd.kinds import KindId
from vban_cmd.kinds import request_kind_map as kindmap
# let's keep things random
KIND_ID = random.choice(tuple(kind_id.name.lower() for kind_id in KindId))
# get KIND_ID from env var, otherwise set to random
KIND_ID = os.environ.get(
"KIND", random.choice(tuple(kind_id.name.lower() for kind_id in KindId))
)
opts = {
"ip": "testing.local",