Skip to content

Commit bfad7ee

Browse files
fix unit tests
1 parent 56e065b commit bfad7ee

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

api_tests/base/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def test_push_status_message_no_response(self):
6363
except BaseException:
6464
assert False, f'Exception from push_status_message via API v2 with type "{status}".'
6565

66+
@unittest.skip('[ANG-959] Make push_status_message NOOP (#11350)')
6667
def test_push_status_message_expected_error(self):
6768
status_message = 'This is a message'
6869
try:
@@ -80,6 +81,7 @@ def test_push_status_message_expected_error(self):
8081
except BaseException:
8182
assert False, 'Exception from push_status_message when called from the v2 API with type "error"'
8283

84+
@unittest.skip('[ANG-959] Make push_status_message NOOP (#11350)')
8385
@mock.patch('framework.status.get_session')
8486
def test_push_status_message_unexpected_error(self, mock_get_session):
8587
status_message = 'This is a message'

api_tests/files/views/test_file_detail.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,8 @@ def test_file_with_wrong_guid(self, app, user):
121121
def test_file_guid_not_created_with_basic_auth(
122122
self, mock_allow, app, user, file_url):
123123
res = app.get(f'{file_url}?create_guid=1', auth=user.auth)
124-
guid = res.json['data']['attributes'].get('guid', None)
125124
assert res.status_code == 200
126125
assert mock_allow.call_count == 1
127-
assert guid is None
128126

129127
@mock.patch('api.base.throttling.CreateGuidThrottle.allow_request')
130128
def test_file_guid_created_with_cookie(

api_tests/metadata_records/test_custom_item_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def test_with_write_permission(self, app, public_osfguid, private_osfguid, anybo
351351
resource_type_general='book-chapter',
352352
),
353353
auth=anybody_with_write_permission.auth,
354+
expect_errors=True,
354355
)
355356
assert res.status_code == 400
356357
expected.assert_expectations(db_record=db_record, api_record=None) # db unchanged

0 commit comments

Comments
 (0)