2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-19 13:18:03 +00:00

[CI] Allow more test time (#11314)

* [CI] Allow more test time

* Fix style issues
This commit is contained in:
Oliver
2026-02-13 12:58:03 +11:00
committed by GitHub
parent 2a613809ec
commit a95ee3ccd9
2 changed files with 8 additions and 7 deletions

View File

@@ -1216,7 +1216,9 @@ class InvenTreeSetting(BaseInvenTreeSetting):
even if that key does not exist.
"""
SETTINGS: dict[str, InvenTreeSettingsKeyType]
from common.setting.system import SYSTEM_SETTINGS
SETTINGS: dict[str, InvenTreeSettingsKeyType] = SYSTEM_SETTINGS
CHECK_SETTING_KEY = True
@@ -1282,9 +1284,6 @@ class InvenTreeSetting(BaseInvenTreeSetting):
The keys must be upper-case
"""
from common.setting.system import SYSTEM_SETTINGS
SETTINGS = SYSTEM_SETTINGS
typ = 'inventree'
@@ -1310,6 +1309,8 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
import common.setting.user
SETTINGS = common.setting.user.USER_SETTINGS
CHECK_SETTING_KEY = True
class Meta:
@@ -1321,8 +1322,6 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
models.UniqueConstraint(fields=['key', 'user'], name='unique key and user')
]
SETTINGS = common.setting.user.USER_SETTINGS
typ = 'user'
extra_unique_fields = ['user']

View File

@@ -962,7 +962,9 @@ class StockItemListTest(StockAPITestCase):
# Note: While the export is quick on pgsql, it is still quite slow on sqlite3
with self.export_data(
self.list_url, max_query_count=50, max_query_time=9.0
self.list_url,
max_query_count=50,
max_query_time=12.0, # Test time increased due to worker variability
) as data_file:
data = self.process_csv(data_file)