Bollycao DEAD #2

Closed
opened 2020-05-03 22:35:07 +01:00 by falso · 1 comment
Owner

TÊ ÉRRE XIS

O El Corte Inglês deve ter mudado o sayte, porque os unit tests que fizeste não estao a funcionar.

falso@dell ~/bot $ supybot-test plugins/Bollycao
Testing began at Sun May  3 22:31:51 2020 (pid 6107)
test_bollycao (Bollycao.test.BollycaoTestCase) ... FAIL
test_bollycao_no_error (Bollycao.test.BollycaoTestCase) ... FAIL
test_bollycaos (Bollycao.test.BollycaoTestCase) ... FAIL
test_bollycaos_no_error (Bollycao.test.BollycaoTestCase) ... FAIL
test_bollycaos_with_no_decimal_places (Bollycao.test.BollycaoTestCase) ... FAIL

======================================================================
FAIL: test_bollycao (Bollycao.test.BollycaoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "plugins/Bollycao/test.py", line 14, in test_bollycao
    self.assertRegexp('bollycao', '1 bollycao = €[-+]?[0-9]*\.?[0-9]+')
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 414, in assertRegexp
    self.assertTrue(re.search(regexp, m.args[1], flags),
AssertionError: None is not true : 'Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)' does not match '1 bollycao = €[-+]?[0-9]*\\.?[0-9]+'

======================================================================
FAIL: test_bollycao_no_error (Bollycao.test.BollycaoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "plugins/Bollycao/test.py", line 8, in test_bollycao_no_error
    self.assertNotError('bollycao')
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 358, in assertNotError
    self.assertFalse(m.args[1].startswith('Error:'),
AssertionError: True is not false : 'bollycao' errored: Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

======================================================================
FAIL: test_bollycaos (Bollycao.test.BollycaoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "plugins/Bollycao/test.py", line 17, in test_bollycaos
    self.assertRegexp('bollycaos 2.40', '€2.40 = [-+]?[0-9]*\.?[0-9]+ bollycaos')
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 414, in assertRegexp
    self.assertTrue(re.search(regexp, m.args[1], flags),
AssertionError: None is not true : 'Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)' does not match '€2.40 = [-+]?[0-9]*\\
.?[0-9]+ bollycaos'

======================================================================
FAIL: test_bollycaos_no_error (Bollycao.test.BollycaoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "plugins/Bollycao/test.py", line 11, in test_bollycaos_no_error
    self.assertNotError('bollycaos 2')
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 358, in assertNotError
    self.assertFalse(m.args[1].startswith('Error:'),
AssertionError: True is not false : 'bollycaos 2' errored: Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

======================================================================
FAIL: test_bollycaos_with_no_decimal_places (Bollycao.test.BollycaoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "plugins/Bollycao/test.py", line 20, in test_bollycaos_with_no_decimal_places
    self.assertRegexp('bollycaos 2', '€2.00 = [-+]?[0-9]*\.?[0-9]+ bollycaos')
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 414, in assertRegexp
    self.assertTrue(re.search(regexp, m.args[1], flags),
AssertionError: None is not true : 'Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)' does not match '€2.00 = [-+]?[0-9]*\\
.?[0-9]+ bollycaos'

----------------------------------------------------------------------
Ran 5 tests in 5.007s

FAILED (failures=5)

E tambem acho que já descobri o porque do plugin não correr automaticamente no bot, eu tinha chamado Bollycaos à directoria, mas o plugin chama-se Bollycao.

TÊ ÉRRE XIS O El Corte Inglês deve ter mudado o sayte, porque os unit tests que fizeste não estao a funcionar. ``` falso@dell ~/bot $ supybot-test plugins/Bollycao Testing began at Sun May 3 22:31:51 2020 (pid 6107) test_bollycao (Bollycao.test.BollycaoTestCase) ... FAIL test_bollycao_no_error (Bollycao.test.BollycaoTestCase) ... FAIL test_bollycaos (Bollycao.test.BollycaoTestCase) ... FAIL test_bollycaos_no_error (Bollycao.test.BollycaoTestCase) ... FAIL test_bollycaos_with_no_decimal_places (Bollycao.test.BollycaoTestCase) ... FAIL ====================================================================== FAIL: test_bollycao (Bollycao.test.BollycaoTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest originalRunTest() File "plugins/Bollycao/test.py", line 14, in test_bollycao self.assertRegexp('bollycao', '1 bollycao = €[-+]?[0-9]*\.?[0-9]+') File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 414, in assertRegexp self.assertTrue(re.search(regexp, m.args[1], flags), AssertionError: None is not true : 'Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)' does not match '1 bollycao = €[-+]?[0-9]*\\.?[0-9]+' ====================================================================== FAIL: test_bollycao_no_error (Bollycao.test.BollycaoTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest originalRunTest() File "plugins/Bollycao/test.py", line 8, in test_bollycao_no_error self.assertNotError('bollycao') File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 358, in assertNotError self.assertFalse(m.args[1].startswith('Error:'), AssertionError: True is not false : 'bollycao' errored: Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0) ====================================================================== FAIL: test_bollycaos (Bollycao.test.BollycaoTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest originalRunTest() File "plugins/Bollycao/test.py", line 17, in test_bollycaos self.assertRegexp('bollycaos 2.40', '€2.40 = [-+]?[0-9]*\.?[0-9]+ bollycaos') File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 414, in assertRegexp self.assertTrue(re.search(regexp, m.args[1], flags), AssertionError: None is not true : 'Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)' does not match '€2.40 = [-+]?[0-9]*\\ .?[0-9]+ bollycaos' ====================================================================== FAIL: test_bollycaos_no_error (Bollycao.test.BollycaoTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest originalRunTest() File "plugins/Bollycao/test.py", line 11, in test_bollycaos_no_error self.assertNotError('bollycaos 2') File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 358, in assertNotError self.assertFalse(m.args[1].startswith('Error:'), AssertionError: True is not false : 'bollycaos 2' errored: Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0) ====================================================================== FAIL: test_bollycaos_with_no_decimal_places (Bollycao.test.BollycaoTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 214, in runTest originalRunTest() File "plugins/Bollycao/test.py", line 20, in test_bollycaos_with_no_decimal_places self.assertRegexp('bollycaos 2', '€2.00 = [-+]?[0-9]*\.?[0-9]+ bollycaos') File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/test.py", line 414, in assertRegexp self.assertTrue(re.search(regexp, m.args[1], flags), AssertionError: None is not true : 'Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)' does not match '€2.00 = [-+]?[0-9]*\\ .?[0-9]+ bollycaos' ---------------------------------------------------------------------- Ran 5 tests in 5.007s FAILED (failures=5) ``` E tambem acho que já descobri o porque do plugin não correr automaticamente no bot, eu tinha chamado Bollycao**s** à directoria, mas o plugin chama-se Bollycao.
Author
Owner

Fixed with 97589e4645

Fixed with 97589e4645efcf3eeade240148f003546b53179d
falso closed this issue 2020-05-04 22:02:19 +01:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: falso/limnoria-plugins#2
No description provided.