From 2aaf27d6afa3281cbd4a64bf06b400317759b1e6 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Fri, 8 Oct 2021 22:52:46 +0300 Subject: [PATCH] tests: Mark RepositorySimulator. create_key() static Signed-off-by: Jussi Kukkonen --- tests/repository_simulator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/repository_simulator.py b/tests/repository_simulator.py index a0aaef6ca0..39d7a8047b 100644 --- a/tests/repository_simulator.py +++ b/tests/repository_simulator.py @@ -135,7 +135,8 @@ def all_targets(self) -> Iterator[Tuple[str, Targets]]: for role, md in self.md_delegates.items(): yield role, md.signed - def create_key(self) -> Tuple[Key, SSlibSigner]: + @staticmethod + def create_key() -> Tuple[Key, SSlibSigner]: sslib_key = generate_ed25519_key() return Key.from_securesystemslib_key(sslib_key), SSlibSigner(sslib_key)