diff --git a/tests/conftest.py b/tests/conftest.py index 7d43cdf0b33f..23b619c21c08 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -265,7 +265,7 @@ def app_config(database): "warehouse.malware.services.PrinterMalwareCheckService" ), "files.url": "http://localhost:7000/", - "tuf.url": "http://licalhost:7000/metadata/", + "tuf.url": "http://localhost:7000/metadata/", "sessions.secret": "123456", "sessions.url": "redis://localhost:0/", "statuspage.url": "https://2p66nmmycsj3.statuspage.io", diff --git a/warehouse/tuf/interfaces.py b/warehouse/tuf/interfaces.py index c32c3cdfa673..529f447c8ce9 100644 --- a/warehouse/tuf/interfaces.py +++ b/warehouse/tuf/interfaces.py @@ -86,7 +86,7 @@ def add_hashed_targets(targets): Args: targets: list of dictionary with file ``info`` and ``path``. - ``info`` contains a dict with ``lenght``, ``hashes`` optionally + ``info`` contains a dict with ``length``, ``hashes`` optionally ``custom`` nested dictionary. ``path`` file path @@ -96,7 +96,7 @@ def add_hashed_targets(targets): { "info": { "hashes": {"blake2b-256": file.blake2_256_digest}, - "lenght": 256, + "length": 256, "custom": {"key": "value}, }, "path": "/xx/yy/file.tar.gz"