From 1aabe0acafc8d6b267212dde343afef59604602e Mon Sep 17 00:00:00 2001 From: "Jason C. Nucciarone" Date: Wed, 10 Jul 2024 09:44:12 -0400 Subject: [PATCH] tests: remove `pyfakefs` as unit test dependency Signed-off-by: Jason C. Nucciarone --- tests/unit/test_slurm_ops.py | 8 +------- tox.ini | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/unit/test_slurm_ops.py b/tests/unit/test_slurm_ops.py index 48e6279..652f02c 100644 --- a/tests/unit/test_slurm_ops.py +++ b/tests/unit/test_slurm_ops.py @@ -6,11 +6,11 @@ import base64 import subprocess +from unittest import TestCase from unittest.mock import patch import charms.hpc_libs.v0.slurm_ops as slurm from charms.hpc_libs.v0.slurm_ops import ServiceType, SlurmManagerBase -from pyfakefs.fake_filesystem_unittest import TestCase MUNGEKEY = b"1234567890" MUNGEKEY_BASE64 = base64.b64encode(MUNGEKEY) @@ -41,9 +41,6 @@ @patch("charms.hpc_libs.v0.slurm_ops.subprocess.check_output") class TestSlurmOps(TestCase): - def setUp(self) -> None: - self.setUpPyfakefs() - def test_format_key(self, _) -> None: """Test that `kebabize` properly formats slurm keys.""" self.assertEqual(slurm.format_key("CPUs"), "cpus") @@ -75,9 +72,6 @@ def test_call_error(self, subcmd) -> None: class SlurmOpsBase: """Test the Slurm service operations managers.""" - def setUp(self) -> None: - self.setUpPyfakefs() - def test_config_name(self, *_) -> None: """Test that the config name is correctly set.""" self.assertEqual(self.manager._service.config_name, self.config_name) diff --git a/tox.ini b/tox.ini index 3bac066..801d23e 100644 --- a/tox.ini +++ b/tox.ini @@ -50,7 +50,6 @@ commands = description = Run unit tests deps = pytest - pyfakefs coverage[toml] -r {tox_root}/requirements.txt commands =