Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions fastapi_startkit/tests/masoniteorm/sqlite/schema/test_table.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import unittest

from tests.integrations.config.database import DATABASES
from src.masoniteorm.connections import SQLiteConnection
from src.masoniteorm.schema import Column, Table
from src.masoniteorm.schema.platforms.SQLitePlatform import SQLitePlatform
from fastapi_startkit.masoniteorm.schema import Column, Table
from fastapi_startkit.masoniteorm.schema.platforms.SQLitePlatform import SQLitePlatform


class TestTable(unittest.TestCase):
Expand Down Expand Up @@ -96,14 +94,3 @@ def test_create_sql_with_foreign_key_constraint(self):

self.platform.constraintize(table.get_added_constraints())
self.assertEqual(self.platform.compile_create_sql(table), [sql])

def test_can_build_table_from_connection_call(self):
sql_details = DATABASES["dev"]
table = self.platform.get_current_schema(
SQLiteConnection(
database=sql_details["database"], name="dev"
).make_connection(),
"table_schema",
)

self.assertEqual(len(table.added_columns), 4)
Loading