Skip to content
Snippets Groups Projects
Verified Commit 2af1a5c4 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix tests

parent 1f44d398
No related branches found
No related tags found
1 merge request!6Fix tests
Pipeline #96344 passed
......@@ -2,6 +2,7 @@ Unreleased
=====================================================
* Fix compatibility with Django 4.1
* [Dev] Fix tests
Version 6.0.2 (2022-09-05)
=====================================================
......
......@@ -35,3 +35,12 @@ DATABASES = {
'PORT': '',
}
}
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {},
},
]
......@@ -24,8 +24,8 @@ class BaseYarnCase(TestCase):
def tearDown(self):
self._remove_node_modules_root()
def _remove_components_root(self):
"""Remove components root if exists"""
def _remove_node_modules_root(self):
"""Remove node_modules root if exists"""
if os.path.exists(TEST_NODE_MODULES_ROOT):
shutil.rmtree(TEST_NODE_MODULES_ROOT)
......
......@@ -72,7 +72,6 @@ class SimpleNodeModulesFinderCase(_MakeDirsTestCase):
"""
If both folders exist, only 'yarn_node_modules' should be used.
"""
self.makedirs(os.path.join(conf.NODE_MODULES_ROOT, 'node_modules'))
self.test_list_existent(leaf_name='node_modules')
......
......@@ -98,14 +98,11 @@ class YarnCommandCase(BaseYarnCase):
yarn_adapter.install = MagicMock()
self._orig_call = yarn_adapter.call_yarn
yarn_adapter.call_yarn = MagicMock()
self._orig_freeze = yarn_adapter.freeze
yarn_adapter.freeze = MagicMock()
def tearDown(self):
super(YarnCommandCase, self).tearDown()
yarn_adapter.install = self._original_install
yarn_adapter.call_yarn = self._orig_call
yarn_adapter.freeze = self._orig_freeze
def test_install_without_params(self):
"""Test that yarn install without param identical
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment