Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
j4mie committed Apr 9, 2024
1 parent c12e62d commit 90f48fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django_dbq/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
utc = timezone.utc
except AttributeError:
from datetime import timezone as datetime_timezone

utc = datetime_timezone.utc


Expand Down Expand Up @@ -238,7 +239,9 @@ def test_gets_jobs_in_priority_and_date_order(self):

def test_ignores_jobs_until_run_after_is_in_the_past(self):
job_1 = Job.objects.create(name="testjob")
job_2 = Job.objects.create(name="testjob", run_after=datetime(2021, 11, 4, 8, tzinfo=utc))
job_2 = Job.objects.create(
name="testjob", run_after=datetime(2021, 11, 4, 8, tzinfo=utc)
)

with freezegun.freeze_time(datetime(2021, 11, 4, 7)):
self.assertEqual(
Expand Down

0 comments on commit 90f48fe

Please sign in to comment.