Skip to content

Commit ba4fc0f

Browse files
committed
chore: 🚨 Fix lint errors
1 parent cc75bfb commit ba4fc0f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/sagemaker/local/image.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@
5050
S3_ENDPOINT_URL_ENV_NAME = "S3_ENDPOINT_URL"
5151

5252
# SELinux Enabled
53-
SELINUX_ENABLED = os.environ.get("SAGEMAKER_LOCAL_SELINUX_ENABLED", "False").lower() in ["1", "true", "yes"]
53+
SELINUX_ENABLED = os.environ.get("SAGEMAKER_LOCAL_SELINUX_ENABLED", "False").lower() in [
54+
"1",
55+
"true",
56+
"yes",
57+
]
5458

5559
logger = logging.getLogger(__name__)
5660

tests/unit/sagemaker/local/test_local_image.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,19 +571,15 @@ def test_train_local_intermediate_output(get_data_source_instance, tmpdir, sagem
571571

572572
@patch("platform.system", Mock(return_value="Linux"))
573573
@patch("sagemaker.local.image.SELINUX_ENABLED", Mock(return_value=True))
574-
def test_container_selinux_has_label(tmpdir, sagemaker_session):
575-
instance_count = 1
576-
image = "my-image"
574+
def test_container_selinux_has_label(tmpdir):
577575
volume = _Volume(str(tmpdir), "/opt/ml/model")
578576

579577
assert volume.map.endswith(":z")
580578

581579

582580
@patch("platform.system", Mock(return_value="Darwin"))
583581
@patch("sagemaker.local.image.SELINUX_ENABLED", Mock(return_value=True))
584-
def test_container_has_selinux_no_label(tmpdir, sagemaker_session, monkeypatch):
585-
instance_count = 1
586-
image = "my-image"
582+
def test_container_has_selinux_no_label(tmpdir):
587583
volume = _Volume(str(tmpdir), "/opt/ml/model")
588584

589585
assert not volume.map.endswith(":z")

0 commit comments

Comments
 (0)