Coverage for test_load_layout_failures.py: 76%
13 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-02-10 12:38 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-02-10 12:38 +0000
1#-----------------------------------------------------------------------------------
2# System tests for the schematic editor functions
3#-----------------------------------------------------------------------------------
5from system_test_harness import *
7#-----------------------------------------------------------------------------------
8# This function tests loading a layout file with missing/additional fields to
9# check that the relevant error messages are generated and reported correctly
10# uses the load_layout_negative_tests.sig file (manually corrupted)
11#-----------------------------------------------------------------------------------
13def run_all_load_layout_negative_tests(delay:float=0.0, shutdown:bool=False):
14 print("Load Layout Negative Tests - unsupported version (too old)")
15 initialise_test_harness(filename="./test_load_layout_failures1.sig")
16 sleep(5.0)
17 print("Load Layout Negative Tests - unsupported version (too new)")
18 initialise_test_harness(filename="./test_load_layout_failures2.sig")
19 sleep(5.0)
20 print("Load Layout Negative Tests - Old version but still supported")
21 initialise_test_harness(filename="./test_load_layout_failures3.sig")
22 if shutdown: report_results()
24if __name__ == "__main__": 24 ↛ 25line 24 didn't jump to line 25, because the condition on line 24 was never true
25 start_application(lambda:run_all_load_layout_negative_tests(delay=0.0, shutdown=True))
27###############################################################################################################################