Skip to content

Commit 32093e7

Browse files
committed
Remove YAML validation tests
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent c4dd61d commit 32093e7

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

tests/schema/config.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/schema/invalid_config.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/schema/test_schema.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright (C) 2019-2024 Intel Corporation
22
# SPDX-License-Identifier: BSD-3-Clause
33

4-
import unittest
54
import logging
5+
import unittest
66

77
import codebasin.config as config
88
import codebasin.util as util
@@ -20,21 +20,11 @@ def test_compilation_database(self):
2020
"""schema/compilation_database"""
2121

2222
path = "./tests/schema/compile_commands.json"
23-
db = config.load_database(path, "")
23+
_ = config.load_database(path, "")
2424

2525
with self.assertRaises(ValueError):
2626
path = "./tests/schema/invalid_compile_commands.json"
27-
db = config.load_database(path, "")
28-
29-
def test_configuration_file(self):
30-
"""schema/configuration_file"""
31-
32-
path = "./tests/schema/config.yaml"
33-
config.load(path, "./tests/schema/")
34-
35-
with self.assertRaises(ValueError):
36-
path = "./tests/schema/invalid_config.yaml"
37-
config.load(path, "")
27+
_ = config.load_database(path, "")
3828

3929
def test_cbiconfig_file(self):
4030
"""schema/cbiconfig_file"""
@@ -82,5 +72,5 @@ def test_analysis_file(self):
8272
toml = util._load_toml(f, "analysis")
8373

8474

85-
if __name__ == '__main__':
75+
if __name__ == "__main__":
8676
unittest.main()

0 commit comments

Comments
 (0)