-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sanity check tests for the docker setup to the notebook tests
- Loading branch information
Showing
6 changed files
with
35 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import os | ||
|
||
|
||
def test_assert_working_directory(): | ||
assert os.getcwd() == os.environ["NOTEBOOK_FOLDER_INITIAL"] | ||
|
||
|
||
def test_assert_environ_nbtest_active(): | ||
assert os.environ["NBTEST_ACTIVE"] == "TRUE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from exasol.secret_store import Secrets | ||
from exasol.itde_manager import ( | ||
bring_itde_up, | ||
take_itde_down | ||
) | ||
from exasol.connections import open_pyexasol_connection | ||
|
||
def test_itde(tmp_path): | ||
store_path = tmp_path / 'tmp_config.sqlite' | ||
store_password = "password" | ||
secrets = Secrets(store_path, master_password=store_password) | ||
bring_itde_up(secrets) | ||
try: | ||
con = open_pyexasol_connection(secrets) | ||
try: | ||
result = con.execute("select 1").fetchmany() | ||
assert result[0][0] == 1 | ||
finally: | ||
con.close() | ||
finally: | ||
take_itde_down(secrets) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.