Skip to content

Commit

Permalink
corrected mock saving function in test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMoraru123 committed Jul 28, 2023
1 parent d16de1a commit 625083d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_generator_output_shape(sr_resnet_params):
mock_sr_resnet_model.call.return_value = mock_output_tensor

# We know the generator is behaving like ResNet, so we mock it just for fun
with mock.patch('tensorflow.keras.models.load_model', return_value=mock_sr_resnet_model):
with mock.patch('tensorflow.saved_model.load', return_value=mock_sr_resnet_model):
generator.initialize_with_srresnet('mock_srresnet_checkpoint')

# I don't actually write code like this in real life
Expand Down

0 comments on commit 625083d

Please sign in to comment.