mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
* Replaced 'test_groups_shells_consistency()' with 'test_parse_input()'
* Fixed Scenario 1 of 'test_parse_input()' * Fixed Scenario 1 of 'test_parse_groups()'
This commit is contained in:
parent
d2fe6d50e8
commit
3516ebd285
@ -263,21 +263,21 @@ class TestSpecialParsers(unittest.TestCase):
|
|||||||
- **if** a correct group section is defined **return** a list of dictionaries
|
- **if** a correct group section is defined **return** a list of dictionaries
|
||||||
"""
|
"""
|
||||||
# Scenario 1
|
# Scenario 1
|
||||||
# conf_pars = ConfigParameters('test6.cfg')
|
conf_pars = ConfigParameters('test5.cfg')
|
||||||
# err_mess = "At least one group"
|
err_mess = "Required parameter"
|
||||||
# with self.assertRaisesRegexp(AssertionError, err_mess):
|
with self.assertRaisesRegexp(Exception, err_mess):
|
||||||
# conf_pars.parse_shells()
|
conf_pars.parse_groups()
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# test_groups_shells_consistency()
|
# test_parse_input()
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
def test_groups_shells_consistency(self):
|
def test_parse_input(self):
|
||||||
"""
|
"""
|
||||||
Function:
|
Function:
|
||||||
|
|
||||||
def groups_shells_consistency(self)
|
def parse_input(self)
|
||||||
|
|
||||||
Scenarios:
|
Scenarios:
|
||||||
|
|
||||||
@ -294,7 +294,7 @@ class TestSpecialParsers(unittest.TestCase):
|
|||||||
conf_pars = ConfigParameters('test6.cfg')
|
conf_pars = ConfigParameters('test6.cfg')
|
||||||
err_mess = "At least one group"
|
err_mess = "At least one group"
|
||||||
with self.assertRaisesRegexp(AssertionError, err_mess):
|
with self.assertRaisesRegexp(AssertionError, err_mess):
|
||||||
conf_pars.parse_shells()
|
conf_pars.parse_input()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user