Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 9, 2024
1 parent 28e214a commit a345de5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/test_shared_input_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,20 @@ def test_check_pysqa_config_directory(self):

def test_validate_number_of_cores(self):
with self.assertRaises(ValueError):
validate_number_of_cores(max_cores=None, max_workers=None, cores_per_worker=None)
validate_number_of_cores(
max_cores=None, max_workers=None, cores_per_worker=None
)
with self.assertRaises(TypeError):
validate_number_of_cores(max_cores=1, max_workers=None, cores_per_worker=None)
validate_number_of_cores(
max_cores=1, max_workers=None, cores_per_worker=None
)
self.assertIsInstance(
validate_number_of_cores(max_cores=1, max_workers=None, cores_per_worker=1), int
validate_number_of_cores(max_cores=1, max_workers=None, cores_per_worker=1),
int,
)
self.assertIsInstance(
validate_number_of_cores(max_cores=None, max_workers=1, cores_per_worker=None), int
validate_number_of_cores(
max_cores=None, max_workers=1, cores_per_worker=None
),
int,
)

0 comments on commit a345de5

Please sign in to comment.