Skip to content

Commit c6cb17c

Browse files
committed
log level to help debug failing tests
1 parent 9fd13c7 commit c6cb17c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

test/end2end/test_helloworld.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22

33
from ovos_bus_client.message import Message
44
from ovos_bus_client.session import Session
5-
5+
from ovos_utils.log import LOG
66
from ovoscope import End2EndTest, get_minicroft
77

88

99
class TestAdaptIntent(TestCase):
1010

1111
def setUp(self):
12+
LOG.set_level("DEBUG")
1213
self.skill_id = "ovos-skill-hello-world.openvoiceos"
1314
self.minicroft = get_minicroft([self.skill_id]) # reuse for speed, but beware if skills keeping internal state
1415

1516
def tearDown(self):
1617
if self.minicroft:
1718
self.minicroft.stop()
19+
LOG.set_level("CRITICAL")
1820

1921
def test_adapt_match(self):
2022
session = Session("123")
@@ -136,12 +138,14 @@ def test_padatious_no_match(self):
136138
class TestPadatiousIntent(TestCase):
137139

138140
def setUp(self):
141+
LOG.set_level("DEBUG")
139142
self.skill_id = "ovos-skill-hello-world.openvoiceos"
140143
self.minicroft = get_minicroft([self.skill_id])
141144

142145
def tearDown(self):
143146
if self.minicroft:
144147
self.minicroft.stop()
148+
LOG.set_level("CRITICAL")
145149

146150
def test_padatious_match(self):
147151
session = Session("123")
@@ -262,12 +266,14 @@ def test_adapt_no_match(self):
262266
class TestModel2VecIntent(TestCase):
263267

264268
def setUp(self):
269+
LOG.set_level("DEBUG")
265270
self.skill_id = "ovos-skill-hello-world.openvoiceos"
266271
self.minicroft = get_minicroft([self.skill_id])
267272

268273
def tearDown(self):
269274
if self.minicroft:
270275
self.minicroft.stop()
276+
LOG.set_level("CRITICAL")
271277

272278
def test_m2v_match(self):
273279
session = Session("123")

test/end2end/test_no_skills.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
from unittest import TestCase
22

33
from ovos_bus_client.message import Message
4+
from ovos_utils.log import LOG
45

56
from ovoscope import End2EndTest, get_minicroft
67

78

89
class TestNoSkills(TestCase):
910

1011
def setUp(self):
11-
self.minicroft = get_minicroft([])
12+
LOG.set_level("DEBUG")
13+
self.minicroft = get_minicroft([]) # reuse for speed, but beware if skills keeping internal state
1214

1315
def tearDown(self):
1416
if self.minicroft:
1517
self.minicroft.stop()
18+
LOG.set_level("CRITICAL")
1619

1720
def test_complete_failure(self):
1821
message = Message("recognizer_loop:utterance",

0 commit comments

Comments
 (0)