Skip to content

Commit

Permalink
refactor(factories): replace percent format with fstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Apr 29, 2024
1 parent 9f31a17 commit 07867c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/outdated/outdated/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class DependencyFactory(DjangoModelFactory):
name = Sequence(lambda n: "ember-%s" % n)
name = Sequence(lambda n: f"ember-{n}")
provider = random.choice(PROVIDERS)

class Meta:
Expand Down Expand Up @@ -53,7 +53,7 @@ class Meta:

class ProjectFactory(DjangoModelFactory):
name = Faker("uuid4")
repo = Sequence(lambda n: "github.com/userorcompany/%s/" % n)
repo = Sequence(lambda n: f"github.com/userorcompany/{n}/")
repo_type = "public"

@post_generation
Expand Down

0 comments on commit 07867c7

Please sign in to comment.