Skip to content

Commit d522c18

Browse files
committed
test table exists
1 parent a69fecf commit d522c18

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/table/test_table_exists.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import asyncio
2+
from unittest import TestCase
3+
4+
from ..example_project.tables import Pokemon
5+
6+
7+
class TestTableExists(TestCase):
8+
9+
def setUp(self):
10+
asyncio.run(Pokemon.create().execute())
11+
12+
def test_table_exists(self):
13+
breakpoint()
14+
response = asyncio.run(Pokemon.table_exists().execute())
15+
self.assertTrue(response is True)
16+
17+
def tearDown(self):
18+
asyncio.run(Pokemon.drop().execute())

0 commit comments

Comments
 (0)