2019-08-16 21:36:55 +02:00
|
|
|
import logging
|
|
|
|
import unittest
|
2022-02-20 11:50:44 +01:00
|
|
|
from cbpi.cli import CraftBeerPiCli
|
2019-08-16 21:36:55 +02:00
|
|
|
|
2022-02-20 11:50:44 +01: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):
|
2022-09-24 15:19:34 +02:00
|
|
|
cli = CraftBeerPiCli(ConfigFolder("./cbpi-test-config", './logs')) # inside tests folder
|
2022-02-20 11:50:44 +01:00
|
|
|
cli.plugins_list()
|
2019-08-16 21:36:55 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|