Beispiel #1
0
    def test_get_run_analysis_commands(self):
        # pre-conditions
        cmd_iter = achilles._get_run_analysis_commands(self.hpo_id)
        commands = list(cmd_iter)

        # test
        self.assertEqual(len(commands), self.achilles_analysis_count)

        for command in commands:
            is_temp = sql_wrangle.is_to_temp_table(command)
            self.assertFalse(is_temp, command)
Beispiel #2
0
 def test_get_run_analysis_commands(self):
     cmd_iter = achilles._get_run_analysis_commands(FAKE_HPO_ID)
     commands = list(cmd_iter)
     self.assertEqual(len(commands), ACHILLES_ANALYSIS_COUNT)
Beispiel #3
0
 def test_parse_temp(self):
     commands = achilles._get_run_analysis_commands(FAKE_HPO_ID)
     for command in commands:
         is_temp = validation.sql_wrangle.is_to_temp_table(command)
         self.assertFalse(is_temp)