Hi Felix
There's just another issue I figured out with my peekaboo installation.
I ran the peekaboo test.py and got the following output:
test_attribute_dict (main.TestSample) ... ok
test_job_hash_regex (main.TestSample) ... ok
test_sample_attributes (main.TestSample) ... No handlers could be found for logger "peekaboo.sample"
FAIL
test_sample_attributes_with_meta_info (main.TestSample) ... ok
test_sample_without_suffix (main.TestSample) ... ok
ERROR
test_1_analysis2db (main.TestDatabase) ... ok
test_2_sample_info_fetch (main.TestDatabase) ... ok
test_3_sample_info_update (main.TestDatabase) ... ok
test_4_fetch_rule_result (main.TestDatabase) ... ok
test_5_known (main.TestDatabase) ... ok
ERROR
ERROR: tearDownClass (main.TestSample)
Traceback (most recent call last):
File "test.py", line 223, in tearDownClass
cls.conf.db_con.close()
AttributeError: 'PeekabooDatabase' object has no attribute 'close'
ERROR: tearDownClass (main.TestDatabase)
Traceback (most recent call last):
File "test.py", line 140, in tearDownClass
cls.conf.db_con.close()
AttributeError: 'PeekabooDatabase' object has no attribute 'close'
FAIL: test_sample_attributes (main.TestSample)
Traceback (most recent call last):
File "test.py", line 183, in test_sample_attributes
'Ausschlaggebendes Ergebnis laut Datenbank: Datei ist dem System noch nicht bekannt')
AssertionError: u'Ausschlaggebendes Ergebnis laut Datenbank: This is another test case.' != 'Ausschlaggebendes Ergebnis laut Datenbank: Datei ist dem System noch nicht bekannt'
Hi Felix There's just another issue I figured out with my peekaboo installation. I ran the peekaboo
test.py
and got the following output:test_attribute_dict (main.TestSample) ... ok test_job_hash_regex (main.TestSample) ... ok test_sample_attributes (main.TestSample) ... No handlers could be found for logger "peekaboo.sample" FAIL test_sample_attributes_with_meta_info (main.TestSample) ... ok test_sample_without_suffix (main.TestSample) ... ok ERROR test_1_analysis2db (main.TestDatabase) ... ok test_2_sample_info_fetch (main.TestDatabase) ... ok test_3_sample_info_update (main.TestDatabase) ... ok test_4_fetch_rule_result (main.TestDatabase) ... ok test_5_known (main.TestDatabase) ... ok ERROR
ERROR: tearDownClass (main.TestSample)
Traceback (most recent call last): File "test.py", line 223, in tearDownClass cls.conf.db_con.close() AttributeError: 'PeekabooDatabase' object has no attribute 'close'
ERROR: tearDownClass (main.TestDatabase)
Traceback (most recent call last): File "test.py", line 140, in tearDownClass cls.conf.db_con.close() AttributeError: 'PeekabooDatabase' object has no attribute 'close'
FAIL: test_sample_attributes (main.TestSample)
Traceback (most recent call last): File "test.py", line 183, in test_sample_attributes 'Ausschlaggebendes Ergebnis laut Datenbank: Datei ist dem System noch nicht bekannt') AssertionError: u'Ausschlaggebendes Ergebnis laut Datenbank: This is another test case.' != 'Ausschlaggebendes Ergebnis laut Datenbank: Datei ist dem System noch nicht bekannt'
Ran 10 tests in 0.041s
FAILED (failures=1, errors=2) `