@@ -218,7 +218,7 @@ def test___init__default(self, mock_check_provider_function, mock_faker):
218218 assert instance .function_name == 'lexify'
219219 assert instance .function_kwargs == {}
220220 assert instance .locales is None
221- assert mock_faker .Faker .called_once_with (None )
221+ mock_faker .Faker .assert_called_once_with (None )
222222 assert instance .enforce_uniqueness is False
223223 assert instance .missing_value_generation == 'random'
224224
@@ -279,7 +279,7 @@ def test___init__custom(self, mock_check_provider_function, mock_faker):
279279 assert instance .function_name == 'credit_card_full'
280280 assert instance .function_kwargs == {'type' : 'visa' }
281281 assert instance .locales == ['en_US' , 'fr_FR' ]
282- assert mock_faker .Faker .called_once_with (['en_US' , 'fr_FR' ])
282+ mock_faker .Faker .assert_called_once_with (['en_US' , 'fr_FR' ])
283283 assert instance .enforce_uniqueness
284284
285285 def test___init__no_function_name (self ):
@@ -346,7 +346,7 @@ def test_reset_randomization(self, mock_faker, mock_base_reset):
346346 AnonymizedFaker .reset_randomization (instance )
347347
348348 # Assert
349- assert mock_faker .Faker .called_once_with ([ 'en_US' ])
349+ mock_faker .Faker .assert_has_calls ([ call ( None ), call ([ 'en_US' ]) ])
350350 mock_base_reset .assert_called_once ()
351351
352352 def test__fit (self ):
@@ -597,7 +597,7 @@ def test___init__super_attrs(self, mock_check_provider_function, mock_faker):
597597 assert instance .function_name == 'lexify'
598598 assert instance .function_kwargs == {}
599599 assert instance .locales is None
600- assert mock_faker .Faker .called_once_with (None )
600+ mock_faker .Faker .assert_called_once_with (None )
601601
602602 @patch ('rdt.transformers.pii.anonymizer.faker' )
603603 @patch ('rdt.transformers.pii.anonymizer.AnonymizedFaker.check_provider_function' )
@@ -641,7 +641,7 @@ def test___init__custom(self, mock_check_provider_function, mock_faker):
641641 assert instance .function_name == 'credit_card_full'
642642 assert instance .function_kwargs == {'type' : 'visa' }
643643 assert instance .locales == ['en_US' , 'fr_FR' ]
644- assert mock_faker .Faker .called_once_with (['en_US' , 'fr_FR' ])
644+ mock_faker .Faker .assert_called_once_with (['en_US' , 'fr_FR' ])
645645
646646 def test_get_mapping (self ):
647647 """Test the ``get_mapping`` method.
0 commit comments