Skip to content

Commit 0cc50c2

Browse files
committed
test pass issues
1 parent 6303c69 commit 0cc50c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,22 +372,22 @@ jobs:
372372
odbcinst -q -d
373373
echo ""
374374
echo "Testing basic pyodbc connection (before Django):"
375-
python -c "
375+
python -c '
376376
import pyodbc
377377
import os
378-
password = os.environ.get('TestAppPassword', 'Unknown')
379-
print(f'Using password length: {len(password)}')
378+
password = os.environ.get("TestAppPassword", "Unknown")
379+
print("Using password length:", len(password))
380380
try:
381-
conn_str = 'DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;UID=sa;PWD=' + password
381+
conn_str = "DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;UID=sa;PWD=" + password
382382
conn = pyodbc.connect(conn_str, timeout=10)
383383
cursor = conn.cursor()
384-
cursor.execute('SELECT 1')
384+
cursor.execute("SELECT 1")
385385
result = cursor.fetchone()
386-
print(f'Direct pyodbc connection successful: {result}')
386+
print("Direct pyodbc connection successful:", result)
387387
conn.close()
388388
except Exception as e:
389-
print(f'Direct pyodbc connection failed: {e}')
390-
"
389+
print("Direct pyodbc connection failed:", e)
390+
'
391391
env:
392392
TestAppPassword: $(TestAppPassword)
393393
displayName: Debug SQL Server connectivity

0 commit comments

Comments
 (0)