Skip to content

Commit 4392574

Browse files
author
Jussi Kukkonen
committed
tests: Remove unused variables from generate_md
Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
1 parent 8071806 commit 4392574

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

tests/generated_data/generate_md.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@
1111
from securesystemslib.signer import SSlibSigner
1212

1313
from tests import utils
14-
from tuf.api.metadata import (
15-
SPECIFICATION_VERSION,
16-
TOP_LEVEL_ROLE_NAMES,
17-
Key,
18-
Metadata,
19-
Role,
20-
Root,
21-
Snapshot,
22-
Targets,
23-
Timestamp,
24-
)
14+
from tuf.api.metadata import Key, Metadata, Root, Snapshot, Targets, Timestamp
2515
from tuf.api.serialization.json import JSONSerializer
2616

2717
# Hardcode keys and expiry time to achieve reproducibility.
@@ -60,13 +50,11 @@
6050

6151
expires_str = "2050-01-01T00:00:00Z"
6252
EXPIRY = datetime.strptime(expires_str, "%Y-%m-%dT%H:%M:%SZ")
63-
SPEC_VERSION = ".".join(SPECIFICATION_VERSION)
6453
OUT_DIR = "generated_data/ed25519_metadata"
6554
if not os.path.exists(OUT_DIR):
6655
os.mkdir(OUT_DIR)
6756

6857
SERIALIZER = JSONSerializer()
69-
ROLES = {role_name: Role([], 1) for role_name in TOP_LEVEL_ROLE_NAMES}
7058

7159

7260
def verify_generation(md: Metadata, path: str) -> None:

0 commit comments

Comments
 (0)