Skip to content

Commit 18faf6a

Browse files
committed
remove comments and update test case
1 parent 5ae4622 commit 18faf6a

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

test/integration/models/database/helpers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ def make_full_postgres_engine_config():
104104
track_functions="all",
105105
wal_sender_timeout=60000,
106106
wal_writer_delay=200,
107+
# # not valid
108+
# pg_partman_bgw_interval=30,
109+
# pg_partman_bgw_role="asdf",
110+
# pg_stat_monitor_pgsm_enable_query_plan=True,
111+
# pg_stat_monitor_pgsm_max_buckets=2,
112+
# pg_stat_statements_track="asdf",
107113
),
108114
pg_stat_monitor_enable=True,
109115
shared_buffers_percentage=25.0,

test/integration/models/database/test_database_engine_config.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ def test_update_mysql_engine_config(
171171
):
172172
db = mysql_db_with_engine_config
173173

174-
updated_label = get_test_label() + "cool"
175174
db.updates.day_of_week = 2
176-
db.label = updated_label
177175
db.engine_config = MySQLDatabaseConfigOptions(
178176
mysql=MySQLDatabaseConfigMySQLOptions(connect_timeout=50),
179177
binlog_retention_period=880,
@@ -192,7 +190,6 @@ def test_update_mysql_engine_config(
192190

193191
database = test_linode_client.load(MySQLDatabase, db.id)
194192

195-
assert database.label == updated_label
196193
assert database.updates.day_of_week == 2
197194
assert database.engine_config.mysql.connect_timeout == 50
198195
assert database.engine_config.binlog_retention_period == 880
@@ -299,12 +296,6 @@ def test_create_postgres_with_engine_config(
299296
actual_config = db.engine_config.pg
300297
expected_config = make_full_postgres_engine_config().pg.__dict__
301298

302-
print(actual_config)
303-
304-
print("ssssss")
305-
306-
print(expected_config)
307-
308299
for key, expected_value in expected_config.items():
309300
actual_value = getattr(actual_config, key, None)
310301
assert (

0 commit comments

Comments
 (0)