Skip to content

Commit

Permalink
Rename and fixing codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Jun 18, 2024
1 parent 42e456c commit adea8be
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
16 changes: 16 additions & 0 deletions tests/contrib/test_decorator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import subprocess
import shlex
import sys


from tortoise.contrib import test


class TestDecorator(test.TestCase):
@test.requireCapability(dialect="sqlite")
async def test_init_memory_sqlite(self):
cmd = f"{sys.executable} examples/basic.py"
r = subprocess.run(shlex.split(cmd), capture_output=True)
output = r.stdout.decode()
s = "[{'id': 1, 'name': 'Updated name'}, {'id': 2, 'name': 'Test 2'}]"
self.assertIn(s, output)
18 changes: 0 additions & 18 deletions tests/contrib/test_runner.py

This file was deleted.

0 comments on commit adea8be

Please sign in to comment.