Skip to content

Commit

Permalink
deleted timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
AAitorG committed Mar 5, 2025
1 parent a62f2fa commit 53278fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
3 changes: 0 additions & 3 deletions src/napari_dinosim/_tests/test_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def widget(mock_viewer):
del widget_instance


@pytest.mark.timeout(30) # Set timeout for this test
def test_widget_initialization(widget, mock_viewer):
"""Test that widget initializes correctly."""
assert (
Expand All @@ -150,7 +149,6 @@ def test_widget_initialization(widget, mock_viewer):
assert widget.compute_device is not None, "Compute device should be set"


@pytest.mark.timeout(30) # Set timeout for this test
def test_model_loading(widget):
"""Test model loading functionality."""
# Initialize widget state to force model loading
Expand Down Expand Up @@ -392,7 +390,6 @@ def test_cleanup(widget):


# Test error handling
@pytest.mark.timeout(30) # Set timeout for this test
def test_error_handling(widget):
"""Test error handling in critical operations."""
# Test invalid image handling
Expand Down
33 changes: 1 addition & 32 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,44 +26,13 @@ deps =
pytest-qt>=4.2.0
pytest-xvfb>=2.0.0
pytest-cov>=2.0
pytest-timeout>=2.1.0
pytest-asyncio>=0.21.0
pyqt5>=5.15.0
napari
magicgui
qtpy
numpy
torch
torchvision
passenv =
CI
GITHUB_ACTIONS
DISPLAY
XAUTHORITY
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
QT_QPA_PLATFORM
PYTEST_QT_API
XDG_RUNTIME_DIR
PYTHONPATH
setenv =
PYTHONPATH = {toxinidir}
QT_DEBUG_PLUGINS = 1
PYTEST_QT_API = pyqt5
QT_QPA_PLATFORM = offscreen
extras =
testing
commands =
pytest -v --color=yes --cov=napari_dinosim --cov-report=xml --timeout=300 {posargs:src/napari_dinosim/_tests}

[pytest]
qt_api = pyqt5
timeout = 300
addopts = -v --color=yes
testpaths = src/napari_dinosim/_tests
filterwarnings =
ignore::DeprecationWarning
ignore::UserWarning
ignore::RuntimeWarning
markers =
timeout: mark test with timeout
commands = pytest -v --color=yes --cov=napari_dinosim --cov-report=xml

0 comments on commit 53278fa

Please sign in to comment.