Fixed invalid response when sending a test-request from Locative iOS app (#5179)
This commit is contained in:
parent
2f907696f3
commit
497a1c84b5
2 changed files with 13 additions and 6 deletions
|
@ -108,6 +108,13 @@ class TestLocative(unittest.TestCase):
|
|||
req = requests.get(_url(copy))
|
||||
self.assertEqual(200, req.status_code)
|
||||
|
||||
# Test message, no location
|
||||
copy = data.copy()
|
||||
copy['trigger'] = 'test'
|
||||
del copy['id']
|
||||
req = requests.get(_url(copy))
|
||||
self.assertEqual(200, req.status_code)
|
||||
|
||||
# Unknown trigger
|
||||
copy = data.copy()
|
||||
copy['trigger'] = 'foobar'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue