Skip to content

Commit

Permalink
fix tests to include updates to targetlists
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Sep 13, 2023
1 parent 9e6f27c commit 6807f66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tom_targets/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,12 @@ def test_share_reduceddatums_target_valid_responses(self):
json={},
status=201,
)
responses.add(
responses.PATCH,
destination_tom_base_url + 'api/targets/1/',
json={},
status=200,
)

response = self.client.post(
reverse('targets:share', kwargs={'pk': self.target.id}),
Expand Down
2 changes: 1 addition & 1 deletion tom_targets/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def form_valid(self, form):
if 'HERMES' in share_destination.upper():
response = share_data_with_hermes(share_destination, form_data, None, target_id, selected_data)
else:
response = share_target_with_tom(share_destination, form_data, selected_data)
response = share_target_with_tom(share_destination, form_data)
if selected_data:
response = share_data_with_tom(share_destination, form_data, selected_data=selected_data)
try:
Expand Down

0 comments on commit 6807f66

Please sign in to comment.