mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-14 21:22:20 +00:00
fix mysql apply order
This commit is contained in:
@@ -131,7 +131,7 @@ class TestBuildAPI(InvenTreeAPITestCase):
|
||||
class BuildAPITest(InvenTreeAPITestCase):
|
||||
"""Series of tests for the Build DRF API."""
|
||||
|
||||
fixtures = ['category', 'part', 'location', 'bom', 'build', 'build_line', 'stock']
|
||||
fixtures = ['category', 'part', 'location', 'build', 'build_line', 'stock', 'bom']
|
||||
|
||||
# Required roles to access Build API endpoints
|
||||
roles = ['build.change', 'build.add']
|
||||
@@ -1474,7 +1474,7 @@ class BuildLineTests(BuildAPITest):
|
||||
response = self.get(
|
||||
url, {'build': build.pk, 'available': True}, max_query_time=30
|
||||
)
|
||||
|
||||
#
|
||||
# We expect 2 lines to have "available" stock
|
||||
self.assertEqual(len(response.data), 2)
|
||||
|
||||
|
Reference in New Issue
Block a user