mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-09 18:24:48 +00:00
14 lines
425 B
Python
14 lines
425 B
Python
![]() |
import os
|
||
|
import pytest
|
||
|
import subprocess
|
||
|
|
||
|
|
||
|
import time
|
||
|
def test_ingest(sql_server):
|
||
|
assert sql_server == 1433
|
||
|
docker="docker"
|
||
|
command = f"{docker} exec testsqlserver /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'test!Password' -d master -i /setup/setup.sql"
|
||
|
ret = subprocess.run(command, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||
|
assert ret.returncode == 0
|
||
|
|