Skip to content

Commit

Permalink
Little refactor in e2e/random.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dplocki committed Jan 20, 2024
1 parent 30b3e05 commit 48b685d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions e2e/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@


def generate_random_string(length: int = 7) -> str:
letters = string.ascii_letters
random_string = "".join(random.choice(letters) for _ in range(length))
return random_string
return "".join(random.choice(string.ascii_letters) for _ in range(length))


def generate_random_sentence(word_count: int) -> str:
Expand Down

0 comments on commit 48b685d

Please sign in to comment.