Skip to content

Commit

Permalink
tests: Mark RepositorySimulator. create_key() static
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Kukkonen <[email protected]>
  • Loading branch information
Jussi Kukkonen committed Oct 27, 2021
1 parent fa2598b commit 2aaf27d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/repository_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2aaf27d

Please sign in to comment.