Skip to content

Commit

Permalink
Fix lint 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Esguerra committed Sep 23, 2024
1 parent 43e0430 commit a59f3dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/app/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.test import SimpleTestCase
from app import calc


class CalcTests(SimpleTestCase):
"""Test calc module"""

Expand Down
2 changes: 1 addition & 1 deletion app/core/management/commands/wait_for_db.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import time
from psycopg2 import OperationalError as Psycopg20pError
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand


class Command(BaseCommand):
def handle(self, *args, **optional):
self.stdout.write('Waiting for database...')
Expand Down
1 change: 1 addition & 0 deletions app/core/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.db.utils import OperationalError
from django.test import SimpleTestCase


@patch('core.management.commands.wait_for_db.Command.check')
class CommandTest(SimpleTestCase):
def test_wait_for_db_ready(self, patched_check):
Expand Down

0 comments on commit a59f3dd

Please sign in to comment.