Skip to content

Commit

Permalink
Deleted duplicate test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Apr 20, 2022
1 parent 95bfb39 commit 41d13a0
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/handlers/tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,3 @@ def test_db_location_deleted_inactive_handler():
assert capabilities['sensor']['location']['description'] == 'test'


@pytest.mark.django_db
def test_db_location_deleted_inactive_handler():
capabilities['sensor'] = {}
capabilities['sensor']['location'] = {}
location = Location()
location.gps = False
location.height = 10
location.longitude = 100
location.latitude = -1
location.description = 'test'
location.active = True
location.save()
assert capabilities['sensor']['location']['x'] == 100
assert capabilities['sensor']['location']['y'] == -1
assert capabilities['sensor']['location']['z'] == 10
assert capabilities['sensor']['location']['description'] == 'test'
location.active = False
location.delete()
assert capabilities['sensor']['location']['x'] == 100
assert capabilities['sensor']['location']['y'] == -1
assert capabilities['sensor']['location']['z'] == 10
assert capabilities['sensor']['location']['description'] == 'test'

0 comments on commit 41d13a0

Please sign in to comment.