mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037
This commit is contained in:
commit
896b676a66
30
.github/ISSUE_TEMPLATE/app_issue.md
vendored
Normal file
30
.github/ISSUE_TEMPLATE/app_issue.md
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
name: App issue
|
||||||
|
about: Report a bug or issue with the InvenTree app
|
||||||
|
title: "[APP] Enter bug description"
|
||||||
|
labels: bug, app
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of the bug or issue
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
|
||||||
|
1. Go to ...
|
||||||
|
2. Select ...
|
||||||
|
3. ...
|
||||||
|
|
||||||
|
**Expected Behavior**
|
||||||
|
A clear and concise description of what you expected to happen
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem
|
||||||
|
|
||||||
|
**Version Information**
|
||||||
|
|
||||||
|
- App platform: *Select iOS or Android*
|
||||||
|
- App version: *Enter app version*
|
||||||
|
- Server version: *Enter server version*
|
@ -588,6 +588,27 @@ class PartAPITest(InvenTreeAPITestCase):
|
|||||||
self.assertEqual(new_part.supplier_parts.count(), 1)
|
self.assertEqual(new_part.supplier_parts.count(), 1)
|
||||||
self.assertEqual(new_part.manufacturer_parts.count(), 1)
|
self.assertEqual(new_part.manufacturer_parts.count(), 1)
|
||||||
|
|
||||||
|
def test_strange_chars(self):
|
||||||
|
"""
|
||||||
|
Test that non-standard ASCII chars are accepted
|
||||||
|
"""
|
||||||
|
|
||||||
|
url = reverse('api-part-list')
|
||||||
|
|
||||||
|
name = "Kaltgerätestecker"
|
||||||
|
description = "Gerät"
|
||||||
|
|
||||||
|
data = {
|
||||||
|
"name": name,
|
||||||
|
"description": description,
|
||||||
|
"category": 2
|
||||||
|
}
|
||||||
|
|
||||||
|
response = self.post(url, data, expected_code=201)
|
||||||
|
|
||||||
|
self.assertEqual(response.data['name'], name)
|
||||||
|
self.assertEqual(response.data['description'], description)
|
||||||
|
|
||||||
|
|
||||||
class PartDetailTests(InvenTreeAPITestCase):
|
class PartDetailTests(InvenTreeAPITestCase):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user