2
0
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:
Matthias Mair
2025-10-02 20:40:27 +02:00
parent 256f22b23d
commit ef6d9bd99d

View File

@@ -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)