Skip to content

Commit 1f592be

Browse files
committed
Update import statements across test files for consistency
- Added missing imports for `Model`, `QueryBuilder`, and relationship classes in various test files. - Ensured all necessary dependencies are included to maintain functionality and improve code clarity.
1 parent 177c37b commit 1f592be

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

tests/mysql/relationships/test_belongs_to_many.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from dotenv import load_dotenv
44

55
from src.masoniteorm.models import Model
6+
from src.masoniteorm.relationships import belongs_to_many, has_one
67

78
# from src.masoniteorm import query
8-
from src.masoniteorm.relationships import belongs_to_many
99

1010
load_dotenv(".env")
1111

tests/mysql/schema/test_mysql_schema_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import unittest
22

3+
from src.masoniteorm.models import Model
34
from src.masoniteorm.schema import Schema
45
from src.masoniteorm.schema.platforms import MySQLPlatform
56

tests/mysql/scopes/test_can_use_global_scopes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import unittest
22

33
from src.masoniteorm.models import Model
4+
from src.masoniteorm.scopes import SoftDeletesMixin
45

56

67
class UserSoft(Model, SoftDeletesMixin):

tests/sqlite/builder/test_sqlite_builder_insert.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import unittest
22

3+
from src.masoniteorm.models import Model
4+
from src.masoniteorm.query import QueryBuilder
5+
from src.masoniteorm.query.grammars import SQLiteGrammar
6+
37

48
class User(Model):
59
__connection__ = "dev"

tests/sqlite/builder/test_sqlite_builder_pagination.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import unittest
22

3+
from src.masoniteorm.models import Model
4+
from src.masoniteorm.query import QueryBuilder
5+
from src.masoniteorm.query.grammars import SQLiteGrammar
6+
37

48
class User(Model):
59
__connection__ = "dev"

tests/sqlite/models/test_sqlite_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import unittest
22

33
from src.masoniteorm.models import Model
4+
from src.masoniteorm.relationships import belongs_to_many
45
from src.masoniteorm.schema import Schema
56
from src.masoniteorm.schema.platforms.SQLitePlatform import SQLitePlatform
67
from tests.integrations.config.database import DATABASES

0 commit comments

Comments
 (0)