Skip to content

New API: Add a constants module #1241

@MVrachev

Description

@MVrachev

Description of issue or feature request:
I think it will be useful to have a constant module in the new API.
This will help us to minimize the errors when writing hardcoded strings.
For example, the "snapshot.json" string is used often in the Timestamp class in tuf/api/metadata.py.

@joshuagl raised awareness for that in this comment:
#1223 (comment)

Current behavior:
Harcoded strings.

Expected behavior:
Use constant containing the string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions