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:
@@ -1216,7 +1216,9 @@ class InvenTreeSetting(BaseInvenTreeSetting):
|
|||||||
even if that key does not exist.
|
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
|
CHECK_SETTING_KEY = True
|
||||||
|
|
||||||
@@ -1282,9 +1284,6 @@ class InvenTreeSetting(BaseInvenTreeSetting):
|
|||||||
|
|
||||||
The keys must be upper-case
|
The keys must be upper-case
|
||||||
"""
|
"""
|
||||||
from common.setting.system import SYSTEM_SETTINGS
|
|
||||||
|
|
||||||
SETTINGS = SYSTEM_SETTINGS
|
|
||||||
|
|
||||||
typ = 'inventree'
|
typ = 'inventree'
|
||||||
|
|
||||||
@@ -1310,6 +1309,8 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
|
|||||||
|
|
||||||
import common.setting.user
|
import common.setting.user
|
||||||
|
|
||||||
|
SETTINGS = common.setting.user.USER_SETTINGS
|
||||||
|
|
||||||
CHECK_SETTING_KEY = True
|
CHECK_SETTING_KEY = True
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
@@ -1321,8 +1322,6 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
|
|||||||
models.UniqueConstraint(fields=['key', 'user'], name='unique key and user')
|
models.UniqueConstraint(fields=['key', 'user'], name='unique key and user')
|
||||||
]
|
]
|
||||||
|
|
||||||
SETTINGS = common.setting.user.USER_SETTINGS
|
|
||||||
|
|
||||||
typ = 'user'
|
typ = 'user'
|
||||||
extra_unique_fields = ['user']
|
extra_unique_fields = ['user']
|
||||||
|
|
||||||
|
|||||||
@@ -962,7 +962,9 @@ class StockItemListTest(StockAPITestCase):
|
|||||||
|
|
||||||
# Note: While the export is quick on pgsql, it is still quite slow on sqlite3
|
# Note: While the export is quick on pgsql, it is still quite slow on sqlite3
|
||||||
with self.export_data(
|
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:
|
) as data_file:
|
||||||
data = self.process_csv(data_file)
|
data = self.process_csv(data_file)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user