Skip to content

Commit

Permalink
Using unittest.mock instead of mock
Browse files Browse the repository at this point in the history
Adding types-mock to test-requirements.txt
  • Loading branch information
yadudoc committed Aug 15, 2024
1 parent 2e01e6e commit 65abe9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion parsl/tests/test_htex/test_resource_spec_validation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import queue
from unittest import mock

import mock
import pytest

from parsl.executors import HighThroughputExecutor
Expand Down
4 changes: 1 addition & 3 deletions parsl/tests/test_mpi_apps/test_resource_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
import typing
import unittest
from typing import Dict
from unittest import mock

import mock
import pytest

import parsl
from parsl.app.app import python_app
from parsl.executors.high_throughput.executor import HighThroughputExecutor
from parsl.executors.high_throughput.mpi_executor import MPIExecutor
from parsl.executors.high_throughput.mpi_prefix_composer import (
InvalidResourceSpecification,
MissingResourceSpecification,
validate_resource_spec,
)
from parsl.executors.high_throughput.mpi_resource_management import (
get_nodes_in_batchjob,
Expand Down
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ pytest-random-order
nbsphinx
sphinx_rtd_theme
mypy==1.5.1
types-mock
types-python-dateutil
types-requests
types-paramiko
mpi4py


# sqlalchemy is needed for typechecking, so it's here
# as well as at runtime for optional monitoring execution
# (where it's specified in setup.py)
Expand Down

0 comments on commit 65abe9b

Please sign in to comment.