Closed Zhenghao-Zhao closed 4 years ago
Hi @Zhenghao-Zhao
when I run the unit tests, 2 failed. I have included the relevant output below. Please have a look,
======================================================================
FAIL: test_flaggingcomments (catalog.tests.selenium_tests.test_flaggingcomments.FirfoxTestCase) test all actions for flagging a comment Traceback (most recent call last): File "/Users/eli024/Projects/stellar-gnosis/gnosis/catalog/tests/selenium_tests/test_flaggingcomments.py", line 143, in test_flaggingcomments self.assertEqual(flag_form_container.get_attribute('hidden'), 'true') AssertionError: None != 'true'
======================================================================
FAIL: test_flaggingcomments (catalog.tests.selenium_tests.test_flaggingcomments.ChromeTestCase) test all actions for flagging a comment Traceback (most recent call last): File "/Users/eli024/Projects/stellar-gnosis/gnosis/catalog/tests/selenium_tests/test_flaggingcomments.py", line 143, in test_flaggingcomments self.assertEqual(flag_form_container.get_attribute('hidden'), 'true') AssertionError: None != 'true'
Ran 47 tests in 78.597s
Thank you! I missed a js function when moving js from html.
I removed all import statements from init files inside tests folder. This resolves the issue with some tests being overlooked when running in suite. I am not sure the purpose of those import statements, if this has other implications let me know. Thanks!
Features: