Skip to content

Commit 348e97a

Browse files
committed
black
1 parent cd81c4a commit 348e97a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

sql/plugins/tests.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: UTF-8 -*-
2-
"""
2+
"""
33
@author: hhyo
44
@license: Apache Licence
55
@file: tests.py
@@ -340,14 +340,16 @@ def test_rewrite(self, _subprocess):
340340

341341
def test_password_mixin(mocker: MockerFixture):
342342
from sql.plugins.password import requests
343+
343344
class MockReponse(Mock):
344345
def json(self):
345346
return {"data": {"username": "test", "password": "test", "ttl": 360}}
347+
346348
mocker.patch.object(requests, "get", return_value=MockReponse())
347-
349+
348350
class DummyInstance:
349351
instance_name = "dummy"
350-
352+
351353
class CompondInstance(DummyInstance, VaultMixin):
352354
pass
353355

sql/test_model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""models.py 的补充测试"""
2+
23
from django.conf import settings
34
from sql.models import InstanceTag
45

@@ -12,4 +13,5 @@ def test_instance_tag_str():
1213
def test_password_mixin_import_error():
1314
settings.PASSWORD_MIXIN_PATH = "sql.not_found:ErrorMixin"
1415
from sql.models import PasswordMixin
16+
1517
assert PasswordMixin.__name__ == "DummyMixin"

0 commit comments

Comments
 (0)