From 465718bbc23b37f0a18610bd48a7bd3948605f02 Mon Sep 17 00:00:00 2001 From: Joe Mancuso Date: Wed, 16 Dec 2020 22:27:12 -0500 Subject: [PATCH] Fixed tests --- tests/mysql/builder/test_query_builder.py | 2 ++ tests/postgres/builder/test_postgres_query_builder.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/mysql/builder/test_query_builder.py b/tests/mysql/builder/test_query_builder.py index 4b7a4a25..dcce1a64 100644 --- a/tests/mysql/builder/test_query_builder.py +++ b/tests/mysql/builder/test_query_builder.py @@ -15,6 +15,8 @@ class Articles(Model): class User(Model): + __timestamps__ = False + @has_many("id", "user_id") def articles(self): return Articles diff --git a/tests/postgres/builder/test_postgres_query_builder.py b/tests/postgres/builder/test_postgres_query_builder.py index 6512d3c8..88418013 100644 --- a/tests/postgres/builder/test_postgres_query_builder.py +++ b/tests/postgres/builder/test_postgres_query_builder.py @@ -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") @@ -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):