Exemple #1
0
def main():
    args, otherthings, parser = parse_known_args()

    if len(otherthings) > 0:
        compile_files(otherthings, args.memory)
    elif args.update:
        return update()
    elif args.problem:
        return problem()
    else:
        parser.print_usage()
        print('No filename passed')
Exemple #2
0
def main():
    args, otherthings, parser = parse_known_args()

    if len(otherthings) > 0:
        compile_files(otherthings, args.memory)
    elif args.update:
        return update()
    elif args.problem:
        return problem()
    else:
        parser.print_usage()
        print('No filename passed')
    def test_problem(self, mock_sys_cmd):
        problem()

        mock_sys_cmd.assert_called_once_with("xdg-open 'https://github.com/shubhamchaudhary/universal/issues'")
Exemple #4
0
    def test_problem(self, mock_sys_cmd):
        problem()

        mock_sys_cmd.assert_called_once_with(
            "xdg-open 'https://github.com/shubhamchaudhary/universal/issues'")