def test_submit_job(): bytes = "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\ndef run():" config = {'name': 'hahah', 'job_id': 'jjjj', 'cron': 'ddd'} JobService.submit_job(bytes, config)
def submit_job(self, file_bytes, config): return JobService.submit_job(file_bytes, config)