Skip to content

Commit

Permalink
fixing codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Jun 18, 2024
1 parent e347d55 commit d6ff0f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/contrib/test_decorator.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import subprocess
import sys


from tortoise.contrib import test


class TestDecorator(test.TestCase):
@test.requireCapability(dialect="sqlite")
async def test_init_memory_sqlite(self):
r = subprocess.run([sys.executable, "examples/basic.py"], capture_output=True)
r = subprocess.run(["python", "examples/basic.py"], capture_output=True)
output = r.stdout.decode()
s = "[{'id': 1, 'name': 'Updated name'}, {'id': 2, 'name': 'Test 2'}]"
self.assertIn(s, output)

0 comments on commit d6ff0f9

Please sign in to comment.