autopep8 : fixed style issues
This commit is contained in:
parent
97e2834816
commit
a3f39c2315
@ -103,6 +103,7 @@ def mock_open(filename, mode):
|
|||||||
|
|
||||||
|
|
||||||
class HelperFunctionsTests(unittest.TestCase):
|
class HelperFunctionsTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_update_dictionary_extending_list(self):
|
def test_update_dictionary_extending_list(self):
|
||||||
target = {
|
target = {
|
||||||
'foo': {
|
'foo': {
|
||||||
@ -139,6 +140,7 @@ def test_inspect_path(self):
|
|||||||
|
|
||||||
|
|
||||||
class TclTests(MockPackagesTest):
|
class TclTests(MockPackagesTest):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TclTests, self).setUp()
|
super(TclTests, self).setUp()
|
||||||
self.configuration_obj = spack.modules.CONFIGURATION
|
self.configuration_obj = spack.modules.CONFIGURATION
|
||||||
@ -163,7 +165,8 @@ def test_simple_case(self):
|
|||||||
spec = spack.spec.Spec('mpich@3.0.4 arch=x86-linux')
|
spec = spack.spec.Spec('mpich@3.0.4 arch=x86-linux')
|
||||||
content = self.get_modulefile_content(spec)
|
content = self.get_modulefile_content(spec)
|
||||||
self.assertTrue('module-whatis "mpich @3.0.4"' in content)
|
self.assertTrue('module-whatis "mpich @3.0.4"' in content)
|
||||||
self.assertRaises(TypeError, spack.modules.dependencies, spec, 'non-existing-tag')
|
self.assertRaises(TypeError, spack.modules.dependencies,
|
||||||
|
spec, 'non-existing-tag')
|
||||||
|
|
||||||
def test_autoload(self):
|
def test_autoload(self):
|
||||||
spack.modules.CONFIGURATION = configuration_autoload_direct
|
spack.modules.CONFIGURATION = configuration_autoload_direct
|
||||||
|
Loading…
Reference in New Issue
Block a user