Skip to content

Commit

Permalink
updated conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Dec 11, 2023
1 parent b4891bf commit 370a6ad
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,17 @@ def start_container(opt, file_config):
iris = None
if not opt.container:
return
try:
print("Starting IRIS container:", opt.container)
iris = IRISContainer(
opt.container,
username="sqlalchemy",
password="sqlalchemy",
dbname="TEST",
)
iris.start()
print("dburi:", iris.get_connection_url())
opt.dburi = [iris.get_connection_url()]
except Exception as e:
iris = None
pytest.exit("Failed to start IRIS container")

print("Starting IRIS container:", opt.container)
iris = IRISContainer(
opt.container,
username="sqlalchemy",
password="sqlalchemy",
namespace="TEST",
)
iris.start()
print("dburi:", iris.get_connection_url())
opt.dburi = [iris.get_connection_url()]


def pytest_unconfigure(config):
Expand Down

0 comments on commit 370a6ad

Please sign in to comment.