mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-26 23:41:47 +01:00
e7aa0a64c7
I seem to have exidentally search and replaced some needed glob.glob calls when adding dinamic log location, which should now be repaired. There also was a mysterious cbpi_dashboard_1.json appearing in the wrong folder which now inside the dashboard folder. I also figured out how to run tests locally, they should now respect the dynamic folder paths.
16 lines
No EOL
447 B
Python
16 lines
No EOL
447 B
Python
import logging
|
|
import unittest
|
|
from cbpi.cli import CraftBeerPiCli
|
|
|
|
from cbpi.configFolder import ConfigFolder
|
|
|
|
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()
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main() |