Skip to content

Commit

Permalink
Enable Attachment Test
Browse files Browse the repository at this point in the history
- The way the JIRA returns upon completion of a DELETE is a 204
  • Loading branch information
hdost committed Jun 29, 2018
1 parent 5ad26c9 commit 9934c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ def test_0_attachment_meta(self):
self.assertTrue(meta['enabled'])
self.assertEqual(meta['uploadLimit'], 10485760)

@unittest.skip("TBD: investigate failure")
def test_1_add_remove_attachment(self):
issue = self.jira.issue(self.issue_1)
attachment = self.jira.add_attachment(issue,
Expand All @@ -483,7 +482,8 @@ def test_1_add_remove_attachment(self):
new_attachment.filename, 'new test attachment', msg=msg)
self.assertEqual(
new_attachment.size, os.path.getsize(TEST_ATTACH_PATH), msg=msg)
assert attachment.delete() is None
# JIRA returns a HTTP 204 upon successful deletion
self.assertEqual(attachment.delete().status_code, 204)


@flaky
Expand Down

0 comments on commit 9934c2d

Please sign in to comment.