Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Dec 17, 2020
1 parent b35d210 commit 465718b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/mysql/builder/test_query_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Articles(Model):


class User(Model):
__timestamps__ = False

@has_many("id", "user_id")
def articles(self):
return Articles
Expand Down
6 changes: 5 additions & 1 deletion tests/postgres/builder/test_postgres_query_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def get_default_query_grammar(cls):
return


class ModelTest(Model):
__timestamps__ = False


class BaseTestQueryBuilder:
def get_builder(self, table="users"):
connection = MockConnectionFactory().make("postgres")
Expand All @@ -28,7 +32,7 @@ def get_builder(self, table="users"):
connection_class=connection,
connection="postgres",
table=table,
model=Model(),
model=ModelTest(),
)

def test_sum(self):
Expand Down

0 comments on commit 465718b

Please sign in to comment.