Browse Source

Start test for trainola

tags/nilmtools-2.0.0
Jim Paris 1 year ago
parent
commit
2c892a9df7
2 changed files with 8 additions and 1 deletions
  1. +1
    -1
      nilmtools/trainola.py
  2. +7
    -0
      tests/test.py

+ 1
- 1
nilmtools/trainola.py View File

@@ -282,7 +282,7 @@ def trainola(conf):
processed_time / elapsed)

def main(argv = None):
import simplejson as json
import json
import sys

if argv is None:


+ 7
- 0
tests/test.py View File

@@ -616,6 +616,13 @@ class TestAllCommands(CommandTester):
def test_09_trainola(self):
self.main = nilmtools.trainola.main

self.fail(f"")
self.ok(f"--help")

self.ok(f"-v")

self.dump()

def test_10_pipewatch(self):
self.main = nilmtools.pipewatch.main



Loading…
Cancel
Save