Skip to content

Commit

Permalink
remove set_attr usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Sep 10, 2024
1 parent 46b396f commit c795df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panoptes_client/tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def test_run_aggregation_with_delete_if_true(self, mock_save, mock_where, mock_f
@patch.object(Workflow, 'get_batch_aggregations')
def test_get_agg_property(self, mock_get_batch_aggregations):
mock_aggregation = MagicMock()
setattr(mock_aggregation, 'test_property', 'returned_test_value')
mock_aggregation.test_property = 'returned_test_value'

mock_get_batch_aggregations.return_value = iter([mock_aggregation])

Expand Down

0 comments on commit c795df1

Please sign in to comment.