Skip to content

Commit

Permalink
Fix 'character' string in other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Guitlle committed Oct 23, 2024
1 parent 699651e commit 72bdf04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kobo/apps/trackers/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _make_payment(
charge.save()
return charge

@data('character', 'seconds')
@data('characters', 'seconds')
def test_organization_usage_utils(self, usage_type):
stripe_key = f'{USAGE_LIMIT_MAP_STRIPE[usage_type]}_limit'
usage_key = f'{USAGE_LIMIT_MAP[usage_type]}_limit'
Expand Down
2 changes: 1 addition & 1 deletion kpi/tests/test_usage_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_organization_setup(self):

assert calculator.get_storage_usage() == 5 * self.expected_file_size()

assert calculator.get_nlp_usage_by_type(USAGE_LIMIT_MAP['character']) == 5473
assert calculator.get_nlp_usage_by_type(USAGE_LIMIT_MAP['characters']) == 5473
assert calculator.get_nlp_usage_by_type(USAGE_LIMIT_MAP['seconds']) == 4586

def test_storage_usage(self):
Expand Down

0 comments on commit 72bdf04

Please sign in to comment.