1
1
# Copyright (C) 2019-2024 Intel Corporation
2
2
# SPDX-License-Identifier: BSD-3-Clause
3
3
4
- import unittest
5
4
import logging
5
+ import unittest
6
6
7
7
import codebasin .config as config
8
8
import codebasin .util as util
@@ -20,21 +20,11 @@ def test_compilation_database(self):
20
20
"""schema/compilation_database"""
21
21
22
22
path = "./tests/schema/compile_commands.json"
23
- db = config .load_database (path , "" )
23
+ _ = config .load_database (path , "" )
24
24
25
25
with self .assertRaises (ValueError ):
26
26
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 , "" )
38
28
39
29
def test_cbiconfig_file (self ):
40
30
"""schema/cbiconfig_file"""
@@ -82,5 +72,5 @@ def test_analysis_file(self):
82
72
toml = util ._load_toml (f , "analysis" )
83
73
84
74
85
- if __name__ == ' __main__' :
75
+ if __name__ == " __main__" :
86
76
unittest .main ()
0 commit comments