Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Oct 21, 2024
1 parent e90a9cb commit 60bf932
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from unittest.mock import patch
import warnings

import psutil
import pytest

from ansys.mapdl import core as pymapdl
Expand Down Expand Up @@ -885,6 +886,7 @@ def mycpucount(**kwargs):
return 10 # faking 10 cores


@patch("psutil.cpu_count", mycpucount)
def test_nproc_envvar(monkeypatch):
monkeypatch.setenv("PYMAPDL_NPROC", 10)
args = launch_mapdl(_debug_no_launch=True)
Expand Down

0 comments on commit 60bf932

Please sign in to comment.