@@ -46,20 +46,6 @@ def test_can_get_installed_system_packages_with_license_from_debian_container_la
4646 results = list (get_installed_packages (test_dir ))
4747 self .check_packages_data (results , expected_file , remove_uuid = True , regen = REGEN_TEST_FIXTURES )
4848
49- def test_parse_control_file_basic (self ):
50- test_dir = self .get_test_loc ('debian/control' )
51- expected_file = self .get_test_loc ('debian/control.expected.json' )
52- result_file = self .get_temp_file ('results.json' )
53- run_scan_click (['--system-package' , test_dir , '--json-pp' , result_file ])
54- check_json_scan (expected_file , result_file , regen = REGEN_TEST_FIXTURES )
55-
56- def test_parse_dsc_file_basic (self ):
57- test_dir = self .get_test_loc ('debian/dsc_files/adduser_3.118+deb11u1.dsc' )
58- expected_file = self .get_test_loc ('debian/dsc_files/adduser_3.118+deb11u1.dsc.expected.json' )
59- result_file = self .get_temp_file ('results.json' )
60- run_scan_click (['--system-package' , test_dir , '--json-pp' , result_file ])
61- check_json_scan (expected_file , result_file , regen = REGEN_TEST_FIXTURES )
62-
6349
6450class TestDebian (PackageTester ):
6551 test_data_dir = os .path .join (os .path .dirname (__file__ ), 'data' )
@@ -111,6 +97,21 @@ def test_scan_system_package_end_to_end_installed_ubuntu_with_missing_md5sums(se
11197 run_scan_click (['--system-package' , test_dir , '--json-pp' , result_file ])
11298 check_json_scan (expected_file , result_file , regen = REGEN_TEST_FIXTURES )
11399
100+ def test_parse_control_file_basic (self ):
101+ test_dir = self .get_test_loc ('debian/control' )
102+ expected_file = self .get_test_loc ('debian/control.expected.json' )
103+ result_file = self .get_temp_file ('results.json' )
104+ run_scan_click (['--package' , test_dir , '--json-pp' , result_file ])
105+ check_json_scan (expected_file , result_file , regen = REGEN_TEST_FIXTURES )
106+
107+ def test_parse_dsc_file_basic (self ):
108+ test_dir = self .get_test_loc ('debian/dsc_files/adduser_3.118+deb11u1.dsc' )
109+ expected_file = self .get_test_loc ('debian/dsc_files/adduser_3.118+deb11u1.dsc.expected.json' )
110+ result_file = self .get_temp_file ('results.json' )
111+ run_scan_click (['--package' , test_dir , '--json-pp' , result_file ])
112+ check_json_scan (expected_file , result_file , regen = REGEN_TEST_FIXTURES )
113+
114+
114115
115116class TestDebianGetListOfInstalledFiles (PackageTester ):
116117 test_data_dir = os .path .join (os .path .dirname (__file__ ), 'data' )
0 commit comments