From bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf Mon Sep 17 00:00:00 2001 From: James Falcon Date: Wed, 15 Dec 2021 20:16:38 -0600 Subject: Adopt Black and isort (SC-700) (#1157) Applied Black and isort, fixed any linting issues, updated tox.ini and CI. --- tests/unittests/test_conftest.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/unittests/test_conftest.py') diff --git a/tests/unittests/test_conftest.py b/tests/unittests/test_conftest.py index 2e02b7a7..68903430 100644 --- a/tests/unittests/test_conftest.py +++ b/tests/unittests/test_conftest.py @@ -19,7 +19,7 @@ class TestDisableSubpUsage: @pytest.mark.allow_all_subp def test_subp_usage_can_be_reenabled(self): - subp.subp(['whoami']) + subp.subp(["whoami"]) @pytest.mark.allow_subp_for("whoami") def test_subp_usage_can_be_conditionally_reenabled(self): @@ -28,15 +28,15 @@ class TestDisableSubpUsage: with pytest.raises(AssertionError) as excinfo: subp.subp(["some", "args"]) assert "allowed: whoami" in str(excinfo.value) - subp.subp(['whoami']) + subp.subp(["whoami"]) @pytest.mark.allow_subp_for("whoami", "bash") def test_subp_usage_can_be_conditionally_reenabled_for_multiple_cmds(self): with pytest.raises(AssertionError) as excinfo: subp.subp(["some", "args"]) assert "allowed: whoami,bash" in str(excinfo.value) - subp.subp(['bash', '-c', 'true']) - subp.subp(['whoami']) + subp.subp(["bash", "-c", "true"]) + subp.subp(["whoami"]) @pytest.mark.allow_all_subp @pytest.mark.allow_subp_for("bash") @@ -60,6 +60,6 @@ class TestDisableSubpUsageInTestSubclass(CiTestCase): _old_allowed_subp = self.allow_subp self.allowed_subp = True try: - subp.subp(['bash', '-c', 'true']) + subp.subp(["bash", "-c", "true"]) finally: self.allowed_subp = _old_allowed_subp -- cgit v1.2.3