Skip to content

Commit

Permalink
Fix seed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjturt committed Jul 14, 2023
1 parent 90c998c commit 74a81f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/benefit/applications/management/commands/seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def add_arguments(self, parser):

def handle(self, *args, **options):
batch_count = 6
total_created = (len(ApplicationStatus.values) + batch_count) * options[
total_created = ((len(ApplicationStatus.values) * 2) + batch_count) * options[
"number"
]
if not settings.DEBUG:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_seed_applications_with_arguments(set_debug_to_true):
amount = 5
statuses = ApplicationStatus.values
batch_count = 6
total_created = (len(ApplicationStatus.values) + batch_count) * amount
total_created = ((len(ApplicationStatus.values) * 2) + batch_count) * amount
out = StringIO()
call_command("seed", number=amount, stdout=out)

Expand Down

0 comments on commit 74a81f9

Please sign in to comment.