D61-IA / stellar-gnosis

Gnosis paper management and collaboration tool
Apache License 2.0
0 stars 1 forks source link

Feature/format html #44

Closed Zhenghao-Zhao closed 4 years ago

Zhenghao-Zhao commented 4 years ago

Features:

Zhenghao-Zhao commented 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.

Zhenghao-Zhao commented 4 years ago

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!