File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
from yml2block .__main__ import guess_input_type
2
+ from yml2block .rules import Level
2
3
3
4
4
5
def test_input_guessing_valid_tsv ():
@@ -48,7 +49,7 @@ def test_input_guessing_valid_csv():
48
49
for path in valid_csv_paths :
49
50
guessed_type , violations = guess_input_type (path )
50
51
assert len (violations ) == 1
51
- assert violations [0 ].level == " WARNING"
52
+ assert violations [0 ].level == Level . WARNING
52
53
assert guessed_type == "csv"
53
54
54
55
@@ -114,5 +115,5 @@ def test_input_guessing_invalid_extension():
114
115
for path in invalid_extension_paths :
115
116
guessed_type , violations = guess_input_type (path )
116
117
assert len (violations ) == 1
117
- assert violations [0 ].level == " ERROR"
118
+ assert violations [0 ].level == Level . ERROR
118
119
assert guessed_type == False
You can’t perform that action at this time.
0 commit comments