Skip to content

Commit 0a8ea54

Browse files
committed
removed all print statements
1 parent d214d06 commit 0a8ea54

File tree

10 files changed

+10
-21
lines changed

10 files changed

+10
-21
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Versions should comply with PEP440. For a discussion on single-sourcing
77
# the version across setup.py and the project code, see
88
# https://packaging.python.org/en/latest/single_source_version.html
9-
version='0.7.1b',
9+
version='0.7.2b',
1010
package_dir={'': 'src'},
1111

1212
description='The Official Masonite ORM',

src/masoniteorm/pagination/SimplePaginator.py

-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ def serialize(self):
2323
}
2424

2525
def has_more_pages(self):
26-
print("more?", len(self.result), self.per_page)
2726
return len(self.result) > self.per_page

src/masoniteorm/query/QueryBuilder.py

-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ def create(self, creates={}, query=False, id_key="id", **kwargs):
393393
processed_results = self._creates
394394

395395
if model:
396-
print("mmm", processed_results)
397396
model = model.fill(processed_results)
398397
self.observe_events(model, "created")
399398
return model

src/masoniteorm/schema/Blueprint.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,14 @@ def morphs(self, column, nullable=False, indexes=True):
365365
self
366366
"""
367367
_columns = []
368-
_columns.append(self.table.add_column(
369-
"{}_id".format(column), "unsigned_integer", nullable=nullable
370-
))
371-
_columns.append(self.table.add_column(
372-
"{}_type".format(column), "string", nullable=nullable
373-
))
368+
_columns.append(
369+
self.table.add_column(
370+
"{}_id".format(column), "unsigned_integer", nullable=nullable
371+
)
372+
)
373+
_columns.append(
374+
self.table.add_column("{}_type".format(column), "string", nullable=nullable)
375+
)
374376

375377
if indexes:
376378
for column in _columns:

src/masoniteorm/schema/platforms/Platform.py

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ def columnize(self, columns):
99
else:
1010
length = ""
1111

12-
print("ff", column.default)
13-
1412
if column.default in (0,):
1513
default = f" DEFAULT {column.default}"
1614
elif column.default in self.premapped_defaults:

tests/mssql/schema/test_mssql_schema_builder_alter.py

-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def test_drop_add_and_change(self):
194194
table.add_column("email", "string")
195195

196196
blueprint.table.from_table = table
197-
print("rrr", table.added_columns)
198197

199198
sql = [
200199
"ALTER TABLE [users] ADD [name] VARCHAR(255) NOT NULL",

tests/mysql/schema/test_mysql_schema_builder_alter.py

-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ def test_drop_add_and_change(self):
169169
table.add_column("email", "string")
170170

171171
blueprint.table.from_table = table
172-
print("rrr", table.added_columns)
173172

174173
sql = [
175174
"ALTER TABLE `users` ADD name VARCHAR(255)",

tests/postgres/schema/test_postgres_schema_builder_alter.py

-3
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,13 @@ def test_drop_add_and_change(self):
182182
table.add_column("email", "string")
183183

184184
blueprint.table.from_table = table
185-
print("rrr", table.added_columns)
186185

187186
sql = [
188187
'ALTER TABLE "users" ADD COLUMN name VARCHAR(255)',
189188
'ALTER TABLE "users" DROP COLUMN email',
190189
'ALTER TABLE "users" ALTER COLUMN age TYPE INTEGER, ALTER COLUMN age DROP NOT NULL, ALTER COLUMN age SET DEFAULT 0',
191190
]
192191

193-
print("gen", blueprint.to_sql())
194-
195192
self.assertEqual(blueprint.to_sql(), sql)
196193

197194
def test_alter_drop_on_table_schema_table(self):

tests/sqlite/schema/test_sqlite_schema_builder.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ def test_can_use_morphs_for_polymorphism_relationships(self):
6464
self.assertEqual(len(blueprint.table.added_columns), 2)
6565
self.assertEqual(
6666
blueprint.to_sql(),
67-
'CREATE TABLE "likes" '
68-
"(record_id UNSIGNED INT, "
69-
"record_type VARCHAR)"
67+
'CREATE TABLE "likes" ' "(record_id UNSIGNED INT, " "record_type VARCHAR)",
7068
)
7169

7270
def test_can_advanced_table_creation(self):

tests/sqlite/schema/test_sqlite_schema_builder_alter.py

-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def test_change(self):
7979
table.add_column("age", "string")
8080

8181
blueprint.table.from_table = table
82-
print("rrr", table.added_columns)
8382

8483
sql = [
8584
"ALTER TABLE users ADD COLUMN name VARCHAR",
@@ -105,7 +104,6 @@ def test_drop_add_and_change(self):
105104
table.add_column("email", "string")
106105

107106
blueprint.table.from_table = table
108-
print("rrr", table.added_columns)
109107

110108
sql = [
111109
"ALTER TABLE users ADD COLUMN name VARCHAR",

0 commit comments

Comments
 (0)