Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #136 from sjanssen2/unittest_ag_new_kit
Browse files Browse the repository at this point in the history
added one more test
  • Loading branch information
wasade committed Oct 4, 2016
2 parents 4fb2548 + d665d88 commit dd88456
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions knimin/tests/test_ag_new_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,17 @@ def test_post(self):
self.assertIn("SET assigned_on = NOW() WHERE barcode IN ()",
response.body)

# what if tag is None
response = self.post('/ag_new_kit/',
{'tag': '',
'projects': ['PROJECT2', 'PROJECT5'],
'swabs': swabs,
'kits': kits,
})
self.assertEqual(response.code, 200)
kitinfo = loads(response.body)
self.assertNotIn('_', kitinfo['kitinfo'][0][0])


if __name__ == "__main__":
main()

0 comments on commit dd88456

Please sign in to comment.