@@ -18,21 +18,17 @@ def test_make_user_no_args():
1818
1919
2020def test_make_group_no_args ():
21- # Ensure the wait-for-provisioning logic can complete.
2221 ws = create_autospec (WorkspaceClient )
2322 mock_group = Group (id = "an_id" )
2423 ws .groups .create .return_value = mock_group
2524 ws .groups .list .return_value = [mock_group ]
2625
27- # Perform the test.
2826 with fixtures (ws = ws ):
2927 ctx , group = call_stateful (make_group )
3028
31- # Verify the fixture for this test.
3229 assert ctx is not None and ctx ['ws' ] is ws
3330 assert group is mock_group
3431
35- # Verify the fixture under test performed the expected actions.
3632 ws .groups .create .assert_called_once ()
3733 assert ws .groups .get .call_args_list == [call ("an_id" ), call ("an_id" )]
3834 assert ws .groups .list .call_args_list == [
@@ -44,21 +40,17 @@ def test_make_group_no_args():
4440
4541
4642def test_make_acc_group_no_args ():
47- # Ensure the wait-for-provisioning logic can complete.
4843 acc = create_autospec (AccountClient )
4944 mock_group = Group (id = "an_id" )
5045 acc .groups .create .return_value = mock_group
5146 acc .groups .list .return_value = [mock_group ]
5247
53- # Perform the test.
5448 with fixtures (acc = acc ):
5549 ctx , group = call_stateful (make_acc_group )
5650
57- # Verify the fixture for this test.
5851 assert ctx is not None and ctx ['acc' ] is acc
5952 assert group is mock_group
6053
61- # Verify the fixture under test performed the expected actions.
6254 acc .groups .create .assert_called_once ()
6355 assert acc .groups .get .call_args_list == [call ("an_id" ), call ("an_id" )]
6456 assert acc .groups .list .call_args_list == [
@@ -73,7 +65,6 @@ def test_make_acc_group_no_args():
7365 [(make_group , "ws" , WorkspaceClient ), (make_acc_group , "acc" , AccountClient )],
7466)
7567def test_make_group_deprecated_arg (make_group_fixture , client_fixture_name , client_class ) -> None :
76- # Ensure the wait-for-provisioning logic can complete.
7768 client = create_autospec (client_class )
7869 mock_group = Group (id = "an_id" )
7970 client .groups .create .return_value = mock_group
@@ -82,7 +73,6 @@ def test_make_group_deprecated_arg(make_group_fixture, client_fixture_name, clie
8273 with fixtures (** {client_fixture_name : client }), warnings .catch_warnings (record = True ) as w :
8374 warnings .simplefilter ("always" )
8475
85- # Verify the fixture that we're testing.
8676 call_stateful (make_group_fixture , wait_for_provisioning = True )
8777
8878 # Check that the expected warning was emitted and attributed to the caller.
0 commit comments