Skip to content

Commit 10d9f9b

Browse files
committed
Cleaned tests and disabled warnings on top-level
1 parent 86c6593 commit 10d9f9b

File tree

3 files changed

+9
-23
lines changed

3 files changed

+9
-23
lines changed

.github/workflows/checks.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ jobs:
118118

119119
- name: Calculate Test Coverage
120120
run: poetry run nox -s coverage -- -- --db-version ${{ matrix.exasol-version }}
121+
env:
122+
PYTEST_ADDOPTS="
123+
-W 'ignore::DeprecationWarning:luigi:'
124+
-W 'ignore::DeprecationWarning:pkg_resources:'
125+
-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'
126+
-W 'ignore:Deprecated call to \`pkg_resources.declare_namespace:DeprecationWarning'
127+
-W 'ignore::DeprecationWarning:exasol_integration_test_docker_environment:'"
121128

122129
- name: Upload Artifacts
123130
uses: actions/upload-artifact@v3

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ exasol-transformers-extension = "^2.0.0"
3333
transformers = {extras = ["torch"], version = "^4.36.2"}
3434
exasol-sagemaker-extension = ">=0.10.0,<1.0.0"
3535

36-
exasol-integration-test-docker-environment = ">=3.2.0"
36+
exasol-integration-test-docker-environment = ">=2.0.0"
3737
requests = ">=2.31.0,<2.32.0"
3838
types-requests = "^2.31.0.6"
3939
ifaddr = "^0.2.0"

test/integration/test_itde_manager_in_docker_container.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -325,29 +325,8 @@ def test_itde_recreation_without_take_down(docker_container):
325325
assert exec_result.exit_code == 0, exec_result.output
326326

327327

328-
_IGNORE_WARNINGS1 = (
329-
'-W "ignore::DeprecationWarning:luigi.*:" '
330-
'-W "ignore::DeprecationWarning:pkg_resources.*:" '
331-
'-W "ignore:pkg_resources is deprecated as an API:DeprecationWarning" '
332-
'-W "ignore::DeprecationWarning:exasol_integration_test_docker_environment.*:"'
333-
)
334-
335-
336-
_IGNORE_WARNINGS = " ".join(
337-
f'-W "ignore:{w}"' for w in [
338-
":DeprecationWarning:luigi.*:",
339-
":DeprecationWarning:pkg_resources.*:",
340-
"pkg_resources is deprecated as an API:DeprecationWarning",
341-
":DeprecationWarning:exasol_integration_test_docker_environment.*:",
342-
])
343-
344-
345-
def test_x1():
346-
print(f'{_IGNORE_WARNINGS}')
347-
assert _IGNORE_WARNINGS == _IGNORE_WARNINGS1
348-
349328
def test_itde_stop_and_restart(docker_container):
350-
exec_result = docker_container.exec_run(f"python3 {_IGNORE_WARNINGS} /tmp/itde_stop_and_restart.py")
329+
exec_result = docker_container.exec_run("python3 /tmp/itde_stop_and_restart.py")
351330
assert exec_result.exit_code == 0, exec_result.output
352331

353332

0 commit comments

Comments
 (0)