craftbeerpi4-pione/tests/test_cli.py

16 lines
447 B
Python
Raw Normal View History

2019-08-16 21:36:55 +02:00
import logging
import unittest
from cbpi.cli import CraftBeerPiCli
2019-08-16 21:36:55 +02:00
from cbpi.configFolder import ConfigFolder
2019-08-16 21:36:55 +02:00
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(name)s - %(message)s')
class CLITest(unittest.TestCase):
def test_list(self):
cli = CraftBeerPiCli(ConfigFolder("./cbpi-test-config", './logs')) # inside tests folder
cli.plugins_list()
2019-08-16 21:36:55 +02:00
if __name__ == '__main__':
unittest.main()