We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8fffe9 commit f5a98ddCopy full SHA for f5a98dd
tests/unit/test_estimator.py
@@ -512,6 +512,24 @@ def test_framework_all_init_args(sagemaker_session):
512
}
513
514
515
+def test_subnets_without_security_groups(sagemaker_session):
516
+ with pytest.raises(RuntimeError):
517
+ DummyFramework(
518
+ entry_point=SCRIPT_PATH,
519
+ sagemaker_session=sagemaker_session,
520
+ subnets=['123'],
521
+ )
522
+
523
524
+def test_security_groups_without_subnets(sagemaker_session):
525
526
527
528
529
+ security_group_ids=['123'],
530
531
532
533
def test_framework_without_role_parameter(sagemaker_session):
534
with pytest.raises(ValueError):
535
DummyFramework(
0 commit comments