mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
More unit fixes
This commit is contained in:
parent
9159afe9ce
commit
28e9aa4afa
@ -270,14 +270,13 @@ class PartQRTest(PartViewTestCase):
|
||||
data = str(response.content)
|
||||
|
||||
self.assertIn('Part QR Code', data)
|
||||
self.assertIn('<img class=', data)
|
||||
self.assertIn('<img src=', data)
|
||||
|
||||
def test_invalid_part(self):
|
||||
response = self.client.get(reverse('part-qr', args=(9999,)), HTTP_X_REQUESTED_WITH='XMLHttpRequest')
|
||||
|
||||
data = str(response.content)
|
||||
|
||||
self.assertIn('Error:', data)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
|
||||
class CategoryTest(PartViewTestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user