

def test_register_from_packs_doesnt_throw_on_missing_pack_resource_folder(self):
    cmd = [SCRIPT_PATH, '--config-file=conf/st2.tests1.conf', '-v', '--register-sensors']
    (exit_code, _, stderr) = run_command(cmd=cmd)
    self.assertTrue(('Registered 0 sensors.' in stderr))
    self.assertEqual(exit_code, 0)
    cmd = [SCRIPT_PATH, '--config-file=conf/st2.tests1.conf', '-v', '--register-all']
    (exit_code, _, stderr) = run_command(cmd=cmd)
    self.assertTrue(('Registered 0 actions.' in stderr))
    self.assertTrue(('Registered 0 sensors.' in stderr))
    self.assertTrue(('Registered 0 rules.' in stderr))
    self.assertEqual(exit_code, 0)

dataset/ETHPy150Open StackStorm/st2/st2common/tests/integration/test_register_content_script.py ContentRegisterScripTestCase.test_register_from_packs_doesnt_throw_on_missing_pack_resource_folder/original