Skip to content

Commit a776271

Browse files
committed
Rename a test_db table for clarity
1 parent d44ec1d commit a776271

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

seleniumbase/core/create_db_tables.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ CREATE TABLE `test_run_data` (
1919
PRIMARY KEY (`guid`)
2020
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2121

22-
# execution table
22+
# test_execution table
2323
# -----------------------------------
24-
CREATE TABLE `execution` (
24+
CREATE TABLE `test_execution` (
2525
`guid` varchar(64) NOT NULL DEFAULT '',
2626
`total_execution_time` int(11),
2727
`username` varchar(255) DEFAULT NULL,

seleniumbase/core/testcase_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def insert_execution_data(self, execution_query_payload):
1212
"execution_start_time" is defined by milliseconds since the Epoch.
1313
(See https://currentmillis.com to convert that to a real date.) """
1414

15-
query = """INSERT INTO execution
15+
query = """INSERT INTO test_execution
1616
(guid, execution_start, total_execution_time, username)
1717
VALUES (%(guid)s,%(execution_start_time)s,
1818
%(total_execution_time)s,%(username)s)"""
@@ -23,7 +23,7 @@ def insert_execution_data(self, execution_query_payload):
2323

2424
def update_execution_data(self, execution_guid, execution_time):
2525
""" Updates an existing test execution row in the database. """
26-
query = """UPDATE execution
26+
query = """UPDATE test_execution
2727
SET total_execution_time=%(execution_time)s
2828
WHERE guid=%(execution_guid)s """
2929
DatabaseManager(self.database_env).execute_query(

0 commit comments

Comments
 (0)