You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: project/tests.sh
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ fi
32
32
33
33
# Validate database tables in los_angeles_data_portal.sqlite
34
34
echo"Checking database tables in $OUTPUT_FILE1..."
35
-
TABLES1=$("$PYTHON_BIN" -c "import sqlite3; conn = sqlite3.connect('$OUTPUT_FILE1'); print([row[0] for row in conn.execute('SELECT name FROM sqlite_master WHERE type=\'table\';')])")
35
+
TABLES1=$(sqlite3 "$OUTPUT_FILE1"".tables")
36
36
EXPECTED_TABLE1="los_angeles_data_portal"
37
37
echo"$TABLES1"| grep -qi "$EXPECTED_TABLE1"
38
38
if [ $?-eq 0 ];then
@@ -44,7 +44,7 @@ fi
44
44
45
45
# Validate database tables in meteostat.sqlite
46
46
echo"Checking database tables in $OUTPUT_FILE2..."
47
-
TABLES2=$("$PYTHON_BIN" -c "import sqlite3; conn = sqlite3.connect('$OUTPUT_FILE2'); print([row[0] for row in conn.execute('SELECT name FROM sqlite_master WHERE type=\'table\';')])")
0 commit comments