Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanMPhm committed Aug 21, 2024
1 parent 3003abb commit 237baf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def process_invoice_row(allocation, attrs, su_name, rate):

for allocation in openstack_allocations:
allocation_str = f'{allocation.pk} of project "{allocation.project.title}"'
msg = f'Starting billing for for allocation {allocation_str}.'
msg = f'Starting billing for allocation {allocation_str}.'
logger.debug(msg)

process_invoice_row(
Expand All @@ -219,7 +219,7 @@ def process_invoice_row(allocation, attrs, su_name, rate):

for allocation in openshift_allocations:
allocation_str = f'{allocation.pk} of project "{allocation.project.title}"'
msg = f'Starting billing for for allocation {allocation_str}.'
msg = f'Starting billing for allocation {allocation_str}.'
logger.debug(msg)

process_invoice_row(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
from coldfront.core.allocation import models as allocation_models


SECONDS_IN_DAY = 3600 * 24


class TestCalculateAllocationQuotaHours(base.TestBase):
def test_new_allocation_quota(self):
self.resource = self.new_openshift_resource(
Expand Down Expand Up @@ -386,8 +389,6 @@ def get_excluded_interval_datetime_list(excluded_interval_list):
datetime.datetime(t2[0], t2[1], t2[2], 23, 59, 59))
for t1, t2 in excluded_interval_list
]

SECONDS_IN_DAY = 3600 * 24

# Single interval within active period
excluded_intervals = get_excluded_interval_datetime_list(
Expand Down

0 comments on commit 237baf9

Please sign in to comment.