mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
update envguard import
This commit is contained in:
parent
7e6d3d81b9
commit
b630fb2856
@ -1,5 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
from test.support import EnvironmentVarGuard
|
|
||||||
|
from test import support
|
||||||
|
|
||||||
from django.test import TestCase, override_settings
|
from django.test import TestCase, override_settings
|
||||||
import django.core.exceptions as django_exceptions
|
import django.core.exceptions as django_exceptions
|
||||||
@ -449,7 +450,7 @@ class TestSettings(TestCase):
|
|||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
self.user_mdl = get_user_model()
|
self.user_mdl = get_user_model()
|
||||||
self.env = EnvironmentVarGuard()
|
self.env = support.EnvironmentVarGuard()
|
||||||
|
|
||||||
def run_reload(self):
|
def run_reload(self):
|
||||||
from plugin import registry
|
from plugin import registry
|
||||||
|
Loading…
Reference in New Issue
Block a user