Exemple #1
0
 def test_compute_src_dst_file(self):
     self.assertDictEqual(
         {
             'action': 'compute',
             'src': 'src_file_path',
             'dst': 'dst_file_path',
         },
         parse_args([
             'compute', '--src', 'src_file_path', '--dst', 'dst_file_path'
         ]))
Exemple #2
0
 def test_full_run_src_dst_file(self):
     self.assertDictEqual(
         {
             'action': 'full-run',
             'src': 'src_file_path',
             'dst': 'dst_file_path',
         },
         parse_args([
             'full-run', '--src', 'src_file_path', '--dst', 'dst_file_path'
         ]))
Exemple #3
0
 def test_compute(self):
     result = parse_args(['compute'])
     self.assertEqual('compute', result['action'])
     self.assertIn('/matches.json', result['src'])
     self.assertIn('/processed.json', result['dst'])
Exemple #4
0
 def test_add_match_dst_file(self):
     self.assertDictEqual({
         'action': 'add-match',
         'dst': 'file_path',
     }, parse_args(['add-match', '--dst', 'file_path']))
Exemple #5
0
 def test_full_run(self):
     result = parse_args(['full-run'])
     self.assertEqual('full-run', result['action'])
     self.assertIn('/matches.json', result['src'])
     self.assertIn('/processed.json', result['dst'])
Exemple #6
0
 def test_add_match(self):
     result = parse_args(['add-match'])
     self.assertEqual('add-match', result['action'])
     self.assertIn('/matches.json', result['dst'])
Exemple #7
0
 def test_draw_src_file(self):
     self.assertDictEqual({
         'action': 'draw',
         'src': 'file_path',
     }, parse_args(['draw', '--src', 'file_path']))
Exemple #8
0
 def test_draw(self):
     result = parse_args(['draw'])
     self.assertEqual('draw', result['action'])
     self.assertIn('/processed.json', result['src'])
Exemple #9
0
 def test_fetch_data_dst_file(self):
     self.assertDictEqual({
         'action': 'fetch-data',
         'dst': 'file_path',
     }, parse_args(['fetch-data', '--dst', 'file_path']))
Exemple #10
0
 def test_fetch_data(self):
     result = parse_args(['fetch-data'])
     self.assertEqual('fetch-data', result['action'])
     self.assertIn('/matches.json', result['dst'])