Skip to content

Commit

Permalink
Remove httpretty and use normal mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oderbolz committed Sep 7, 2017
1 parent 0fb349c commit 055f05d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ coveralls==0.4.1
mock==1.0.1
xmltodict==0.9.0
virtualenv==15.1.0
httpretty==0.8.14
18 changes: 0 additions & 18 deletions tests/functional_tests.py

This file was deleted.

7 changes: 7 additions & 0 deletions tests/relation_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,3 +310,10 @@ def test_RelationsGet(self):
self.assertEquals(result[1532552]['id'], 1532552)
self.assertEquals(result[1532552]['visible'], True)
self.assertEquals(result[1532552]['tag']['route'], 'bicycle')

def test_RelationFull_with_deleted_relation(self):
self._session_mock(filenames=[], status=410)

with self.assertRaises(osmapi.ElementDeletedApiError) as context:
self.api.RelationFull(2911456)
self.assertEquals(410, context.exception.status)

0 comments on commit 055f05d

Please sign in to comment.