Added tests for title block errors.

This commit is contained in:
SET 2020-08-14 19:26:39 -03:00
parent 76ed259053
commit 09b7ed5eca
5 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,16 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding latin1
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$EndSCHEMATC

View File

@ -0,0 +1,16 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1 extra
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$EndSCHEMATC

View File

@ -0,0 +1,16 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date no_quotes
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$EndSCHEMATC

View File

@ -0,0 +1,16 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
#$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$EndSCHEMATC

View File

@ -230,3 +230,23 @@ def test_sch_errors_bad_sfname():
def test_sch_errors_miss_sfname():
setup_ctx('miss_sfname', 'Missing sub-sheet file name')
def test_sch_errors_miss_descr():
setup_ctx('miss_descr', r'Missing \$Descr')
def test_sch_errors_bad_encoding():
setup_ctx('bad_encoding', 'Unsupported encoding')
def test_sch_errors_bad_snum():
setup_ctx('bad_snum', 'Wrong sheet number')
def test_sch_errors_bad_tbentry():
setup_ctx('bad_tbentry', 'Wrong entry in title block')