コード例 #1
0
ファイル: test_config.py プロジェクト: bdrung/bdebstrap
 def test_wrong_element_type(self):
     """Test error message for wrong list element type."""
     config = Config()
     config.load(os.path.join(TEST_CONFIG_DIR, "wrong-element-type.yaml"))
     with self.assertRaisesRegex(
             ValueError, "'customize-hooks' has type 'CommentedMap'"):
         config.check()
コード例 #2
0
ファイル: test_config.py プロジェクト: bdrung/bdebstrap
 def test_commented_packages():
     """Test commented-packages.yaml file."""
     config = Config()
     config.load(os.path.join(TEST_CONFIG_DIR, "commented-packages.yaml"))
     config.sanitize_packages()
     config.check()
コード例 #3
0
ファイル: test_config.py プロジェクト: bdrung/bdebstrap
 def test_check_example():
     """Test example unstable.yaml file."""
     config = Config()
     config.load(os.path.join(EXAMPLE_CONFIG_DIR, "Debian-unstable.yaml"))
     config["name"] = "Debian-unstable"
     config.check()