We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df6eee0 commit 92b3e36Copy full SHA for 92b3e36
test/conftest.py
@@ -27,7 +27,7 @@ def pytest_generate_tests(metafunc):
27
@pytest.fixture(autouse=True)
28
def cleanup_after_test():
29
yield
30
- tables = DB().fetch_all("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'")
+ tables = DB().fetch_all("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' AND table_type != 'VIEW'")
31
for table in tables:
32
table_name = table[0]
33
DB().query(f'TRUNCATE TABLE "{table_name}" RESTART IDENTITY CASCADE')
0 commit comments