def test_help(self): sys.argv = ["magui.py", "--help"] try: magui.main() except: pass assert True
def test_main(self): sys.argv = ["magui.py", "--list-plugins"] try: magui.main() except: pass assert True
#!/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())