Exemplo n.º 1
0
 def test_full_summary_key_files_json_lines(self):
     test_dir = self.get_test_loc('full_summary/scan')
     result_file = self.get_temp_file('json')
     expected_file = self.get_test_loc('full_summary/summary_key_files-details.expected.json-lines')
     run_scan_click(
         ['-cli', '--classify', '--summary', '--summary-key-files',
          '--json-lines', result_file, test_dir])
     check_jsonlines_scan(expected_file, result_file, remove_file_date=True, regen=False)
def test_jsonlines():
    test_dir = test_env.get_test_loc('json/simple')
    result_file = test_env.get_temp_file('jsonline')
    run_scan_click(['-i', test_dir, '--json-lines', result_file])
    expected = test_env.get_test_loc('json/simple-expected.jsonlines')
    check_jsonlines_scan(
        test_env.get_test_loc(expected), result_file,
        remove_file_date=True, regen=False)
Exemplo n.º 3
0
 def test_full_summary_key_files_json_lines(self):
     test_dir = self.get_test_loc('tallies/full_tallies/scan')
     result_file = self.get_temp_file('json')
     expected_file = self.get_test_loc(
         'tallies/full_tallies/tallies_key_files-details.expected.json-lines'
     )
     run_scan_click([
         '-cli', '--classify', '--tallies', '--tallies-key-files',
         '--json-lines', result_file, test_dir
     ])
     check_jsonlines_scan(expected_file,
                          result_file,
                          remove_file_date=True,
                          regen=REGEN_TEST_FIXTURES)