示例#1
0
    def test_help(self):
        sys.argv = ["magui.py", "--help"]
        try:
            magui.main()
        except:
            pass

        assert True
示例#2
0
    def test_main(self):
        sys.argv = ["magui.py", "--list-plugins"]
        try:
            magui.main()
        except:
            pass

        assert True
示例#3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2018, 2019, 2020 Pablo Iranzo Gómez <*****@*****.**>

import os
import sys

sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../"))

from maguiclient.magui import main

if __name__ == "__main__":
    sys.exit(main())