Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py test failes at openSUSE Tumbleweed #384

Open
paulrm opened this issue Jun 8, 2017 · 0 comments
Open

setup.py test failes at openSUSE Tumbleweed #384

paulrm opened this issue Jun 8, 2017 · 0 comments

Comments

@paulrm
Copy link

paulrm commented Jun 8, 2017

setup.py test failes at openSUSE Tumbleweed Linux as below;

$ python2 setup.py test
/usr/lib/python2.7/site-packages/setuptools/dist.py:333: UserWarning: Normalizing '0.2a' to '0.2a0'
  normalized_version,
running test
running egg_info
writing requirements to geeknote.egg-info/requires.txt
writing geeknote.egg-info/PKG-INFO
writing top-level names to geeknote.egg-info/top_level.txt
writing dependency_links to geeknote.egg-info/dependency_links.txt
writing entry points to geeknote.egg-info/entry_points.txt
reading manifest file 'geeknote.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.MD'
warning: no previously-included files found matching '*.orig'
warning: no previously-included files found matching '*.pyc'
writing manifest file 'geeknote.egg-info/SOURCES.txt'
running build_ext
testEmptyCommand (tests.argparserTest.testArgparser) ... Version: 0.1
Geeknote - a command line client for Evernote.
Use geeknote --help to read documentation.
And visit www.geeknote.me to check for updates.
ok
testErrorArg (tests.argparserTest.testArgparser) ... Unexpected argument "--test_arg_err" for command "testing"
Options for: testing
Available arguments:
--test_req_arg : [default] Set note title
    --test_arg : Add tag to note
   --test_arg2 : Add tag to note
Available flags:
   --test_flag : Add tag to note
ok
testErrorCommands (tests.argparserTest.testArgparser) ... Unexpected command "testing_err"
Available commands:
       tag-edit : Edit/rename tag.
           show : Output note in the terminal.
  notebook-list : Show the list of existing notebooks in your Evernote.
        testing : Create note
       tag-list : Show the list of existing tags in your Evernote.
         logout : Logout from Evernote.
           user : Show information about active user.
           find : Search notes in Evernote.
       settings : Show and edit current settings.
           edit : Edit note in Evernote.
         create : Create note in evernote.
         remove : Remove note from Evernote.
notebook-create : Create new notebook.
          login : Authorize in Evernote.
  notebook-edit : Edit/rename notebook.
     tag-create : Create new tag.
ok
testErrorFlag (tests.argparserTest.testArgparser) ... Unexpected argument "test_val" for command "testing"
Options for: testing
Available arguments:
--test_req_arg : [default] Set note title
    --test_arg : Add tag to note
   --test_arg2 : Add tag to note
Available flags:
   --test_flag : Add tag to note
ok
testErrorNoArg (tests.argparserTest.testArgparser) ... Unexpected value "" for argument "--test_req_arg"
Options for: testing
Available arguments:
--test_req_arg : [default] Set note title
    --test_arg : Add tag to note
   --test_arg2 : Add tag to note
Available flags:
   --test_flag : Add tag to note
ok
testErrorReq (tests.argparserTest.testArgparser) ... Not found required argument "--test_req_arg" for command "testing" 
Options for: testing
Available arguments:
--test_req_arg : [default] Set note title
    --test_arg : Add tag to note
   --test_arg2 : Add tag to note
Available flags:
   --test_flag : Add tag to note
ok
testErrorVal (tests.argparserTest.testArgparser) ... Unexpected value "--test_arg" for argument "--test_req_arg"
Options for: testing
Available arguments:
--test_req_arg : [default] Set note title
    --test_arg : Add tag to note
   --test_arg2 : Add tag to note
Available flags:
   --test_flag : Add tag to note
ok
testSuccessCommand1 (tests.argparserTest.testArgparser) ... ok
testSuccessCommand2 (tests.argparserTest.testArgparser) ... ok
testSuccessCommand3 (tests.argparserTest.testArgparser) ... ok
testSuccessCommand4 (tests.argparserTest.testArgparser) ... ok
testSuccessCommand5 (tests.argparserTest.testArgparser) ... ok
testSuccessShortAttr (tests.argparserTest.testArgparser) ... ok
testSuccessShortAttr2 (tests.argparserTest.testArgparser) ... ok
test_ENMLToText (tests.editorTest.testEditor) ... /usr/lib/python2.7/site-packages/beautifulsoup4-4.6.0-py2.7.egg/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 108 of the file setup.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup(YOUR_MARKUP})

to this:

 BeautifulSoup(YOUR_MARKUP, "lxml")

FAIL
test_TextToENML (tests.editorTest.testEditor) ... ok
test_wrapENML_success (tests.editorTest.testEditor) ... ok
test_wrapENML_without_argument_fail (tests.editorTest.testEditor) ... ok
test_patched_client (tests.gclientTests.testGclient) ... ok
test_patched_client_contain_methods (tests.gclientTests.testGclient) ... ok
testError_createSearchRequest1 (tests.geeknoteTest.testNotes) ... Incorrect date format in --date attribute. Format: 31.12.1999
ERROR                                   
test_createSearchRequest1 (tests.geeknoteTest.testNotes) ... ok
test_createSearchRequest2 (tests.geeknoteTest.testNotes) ... ok
 >> : Noneok                            oteTest.testNotes) ... 
test_parseInput1 (tests.geeknoteTest.testNotes) ... ok
test_parseInput2 (tests.geeknoteTest.testNotes) ... ok
test_strip_chn (tests.gnsyncTest.testGnsync) ... ok
test_strip_eng (tests.gnsyncTest.testGnsync) ... ok
test_strip_kor (tests.gnsyncTest.testGnsync) ... ok
test_strip_nochange (tests.gnsyncTest.testGnsync) ... ok
fail                                    est.outTestsWithHackedStdout) ... 
FAIL
test_print_about_success (tests.outTest.outTestsWithHackedStdout) ... Version: 0.1
Geeknote - a command line client for Evernote.
Use geeknote --help to read documentation.
And visit www.geeknote.me to check for updates.
FAIL
test_print_date (tests.outTest.outTestsWithHackedStdout) ... FAIL
test_print_line (tests.outTest.outTestsWithHackedStdout) ... test
FAIL
test_print_line_other_endline_success (tests.outTest.outTestsWithHackedStdout) ... test
FAIL
test_print_list_with_selector_success (tests.outTest.outTestsWithHackedStdout) ... =================== test ==================
Total found: 2
  1 : 31.12.1969        testnote
  2 : 31.12.1969        testnote
  0 : -Cancel-
FAIL
test_print_list_with_title_success (tests.outTest.outTestsWithHackedStdout) ... =================== test ==================
Total found: 2
  1 : 31.12.1969        testnote
  2 : 31.12.1969        testnote
FAIL
test_print_list_with_urls_success (tests.outTest.outTestsWithHackedStdout) ... =================== test ==================
Total found: 2
  1 : 31.12.1969        testnote >>> https://www.evernote.com/Home.action?#n=12345
  2 : 31.12.1969        testnote >>> https://www.evernote.com/Home.action?#n=12345
FAIL
test_print_list_without_title_success (tests.outTest.outTestsWithHackedStdout) ... Total found: 2
  1 : 31.12.1969        testnote
  2 : 31.12.1969        testnote
FAIL
test_search_result_success (tests.outTest.outTestsWithHackedStdout) ... Search request: test
Total found: 2
  1 : 31.12.1969        testnote
  2 : 31.12.1969        testnote
FAIL
test_separator_empty_args_success (tests.outTest.outTestsWithHackedStdout) ... 

FAIL
test_separator_with_title_success (tests.outTest.outTestsWithHackedStdout) ... ------------------- test ------------------
FAIL
test_separator_without_title_success (tests.outTest.outTestsWithHackedStdout) ... ----------------------------------------

FAIL
test_show_note_success (tests.outTest.outTestsWithHackedStdout) ... ################## TITLE ##################
testnote
=================== META ==================
Created: 31.12.1969     
Updated: 31.12.1969     
ERROR
test_show_user_with_fullinfo_success (tests.outTest.outTestsWithHackedStdout) ... ################ USER INFO ################
Username         : testusername
Name             : testname
Email            : testemail
Upload limit     : 0.00
Upload limit end : 01.01.1970
FAIL
test_show_user_without_fullinfo_success (tests.outTest.outTestsWithHackedStdout) ... ################ USER INFO ################
Username         : testusername
Name             : testname
Email            : testemail
FAIL
test_success_message_success (tests.outTest.outTestsWithHackedStdout) ... success
FAIL
test_repr_notebook (tests.storageTest.modelsTest) ... ok
test_repr_search (tests.storageTest.modelsTest) ... ok
test_repr_setting (tests.storageTest.modelsTest) ... ok
test_repr_tag (tests.storageTest.modelsTest) ... ok
test_rept_userprop (tests.storageTest.modelsTest) ... ok
test_create_user_without_info_fail (tests.storageTest.storageTest) ... ok
test_create_user_without_token_fail (tests.storageTest.storageTest) ... ok
test_get_empty_search_success (tests.storageTest.storageTest) ... ok
test_get_empty_settings (tests.storageTest.storageTest) ... ok
test_get_search_exists_success (tests.storageTest.storageTest) ... ok
test_get_setting_exist_success (tests.storageTest.storageTest) ... ok
test_get_setting_not_exist_fail (tests.storageTest.storageTest) ... ok
test_get_tags_success (tests.storageTest.storageTest) ... ok
test_get_user_info_success (tests.storageTest.storageTest) ... ok
test_get_user_prop_not_exists (tests.storageTest.storageTest) ... ok
test_get_user_props_exists_success (tests.storageTest.storageTest) ... ok
test_get_user_props_success (tests.storageTest.storageTest) ... ok
test_get_user_token_success (tests.storageTest.storageTest) ... ok
test_remove_user_success (tests.storageTest.storageTest) ... ok
test_replace_notebooks_success (tests.storageTest.storageTest) ... ok
test_replace_tags_success (tests.storageTest.storageTest) ... ok
test_set_exists_user_prop (tests.storageTest.storageTest) ... ok
test_set_new_user_prop (tests.storageTest.storageTest) ... ok
test_set_notebooks_error_type_fail (tests.storageTest.storageTest) ... ok
test_set_notebooks_none_value_fail (tests.storageTest.storageTest) ... ok
test_set_notebooks_success (tests.storageTest.storageTest) ... ok
test_set_search_true (tests.storageTest.storageTest) ... ok
test_set_setting_error_type_fail (tests.storageTest.storageTest) ... ok
test_set_setting_none_value_fail (tests.storageTest.storageTest) ... ok
test_set_setting_true (tests.storageTest.storageTest) ... ok
test_set_settings_success (tests.storageTest.storageTest) ... ok
test_set_tags_error_type_fail (tests.storageTest.storageTest) ... ok
test_set_tags_none_value_fail (tests.storageTest.storageTest) ... ok
test_set_tags_success (tests.storageTest.storageTest) ... ok
test_update_settings_fail (tests.storageTest.storageTest) ... ok
test_check_is_int_false (tests.toolsTest.testTools) ... ok
test_check_is_int_float_success (tests.toolsTest.testTools) ... ok
test_check_is_int_success (tests.toolsTest.testTools) ... ok
test_decode_args_success (tests.toolsTest.testTools) ... ok
test_stdinEncode_success (tests.toolsTest.testTools) ... ok
test_stdoutEncode_success (tests.toolsTest.testTools) ... ok
test_strip_dict_data_success (tests.toolsTest.testTools) ... ok
test_strip_int_data_false (tests.toolsTest.testTools) ... ok
test_strip_list_data_success (tests.toolsTest.testTools) ... ok
test_strip_none_data_success (tests.toolsTest.testTools) ... ok
test_strip_str_data_success (tests.toolsTest.testTools) ... ok
test_struct_success (tests.toolsTest.testTools) ... ok

======================================================================
ERROR: testError_createSearchRequest1 (tests.geeknoteTest.testNotes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/geeknoteTest.py", line 92, in testError_createSearchRequest1
    date="12.31.1999")
  File "/root/src/geeknote/geeknote/geeknote.py", line 841, in _createSearchRequest
    return tools.exitErr()
  File "/root/src/geeknote/geeknote/tools.py", line 68, in exitErr
    _exit(message, code)
  File "/root/src/geeknote/geeknote/tools.py", line 60, in _exit
    out.preloader.exit(code)
  File "/root/src/geeknote/geeknote/out.py", line 78, in exit
    sys.exit(code)
SystemExit: 1

======================================================================
ERROR: test_show_note_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 113, in test_show_note_success
    showNote(NoteStub())
  File "/root/src/geeknote/geeknote/out.py", line 34, in wrapped
    return fn(*args, **kwargs)
  File "/root/src/geeknote/geeknote/out.py", line 173, in showNote
    for key, value in note.attributes.__dict__.items():
AttributeError: 'NoteStub' object has no attribute 'attributes'

======================================================================
FAIL: test_ENMLToText (tests.editorTest.testEditor)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/editorTest.py", line 30, in test_ENMLToText
    self.assertEqual(Editor.ENMLtoText(wrapped), self.MD_TEXT)
AssertionError: '# Header 1\n\n## Header 2\n\nLine 1\n\n_Line 2_\n\n**Line 3**\n' != '# Header 1\n\n## Header 2\n\nLine 1\n\n_Line 2_\n\n**Line 3**\n\n'

======================================================================
FAIL: test_failure_message_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 78, in test_failure_message_success
    self.assertEquals(sys.stdout.read(), 'fail\n')
AssertionError: '' != 'fail\n'

======================================================================
FAIL: test_print_about_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 56, in test_print_about_success
    self.assertEquals(sys.stdout.read(), about)
AssertionError: '' != 'Version: 0.1\nGeeknote - a command line client for Evernote.\nUse geeknote --help to read documentation.\nAnd visit www.geeknote.me to check for updates.\n'

======================================================================
FAIL: test_print_date (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 165, in test_print_date
    self.assertEquals(printDate(1000000), '12.01.1970')
AssertionError: '31.12.1969' != '12.01.1970'

======================================================================
FAIL: test_print_line (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 42, in test_print_line
    self.assertEquals(sys.stdout.read(), 'test\n')
AssertionError: '' != 'test\n'

======================================================================
FAIL: test_print_line_other_endline_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 47, in test_print_line_other_endline_success
    self.assertEquals(sys.stdout.read(), 'test\n\r')
AssertionError: '' != 'test\n\r'

======================================================================
FAIL: test_print_list_with_selector_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 153, in test_print_list_with_selector_success
    self.assertEquals(sys.stdout.read(), notes_list)
AssertionError: '' != '=================== test ==================\nTotal found: 2\n  1 : 01.01.1970  testnote\n  2 : 01.01.1970  testnote\n  0 : -Cancel-\n'

======================================================================
FAIL: test_print_list_with_title_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 132, in test_print_list_with_title_success
    self.assertEquals(sys.stdout.read(), notes_list)
AssertionError: '' != '=================== test ==================\nTotal found: 2\n  1 : 01.01.1970  testnote\n  2 : 01.01.1970  testnote\n'

======================================================================
FAIL: test_print_list_with_urls_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 142, in test_print_list_with_urls_success
    self.assertEquals(sys.stdout.read(), notes_list)
AssertionError: '' != '=================== test ==================\nTotal found: 2\n  1 : 01.01.1970  testnote >>> https://www.evernote.com/Home.action?#n=12345\n  2 : 01.01.1970  testnote >>> https://www.evernote.com/Home.action?#n=12345\n'

======================================================================
FAIL: test_print_list_without_title_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 123, in test_print_list_without_title_success
    self.assertEquals(sys.stdout.read(), notes_list)
AssertionError: '' != 'Total found: 2\n  1 : 01.01.1970  testnote\n  2 : 01.01.1970  testnote\n'

======================================================================
FAIL: test_search_result_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 162, in test_search_result_success
    self.assertEquals(sys.stdout.read(), result)
AssertionError: '' != 'Search request: test\nTotal found: 2\n  1 : 01.01.1970  testnote\n  2 : 01.01.1970  testnote\n'

======================================================================
FAIL: test_separator_empty_args_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 73, in test_separator_empty_args_success
    self.assertEquals(sys.stdout.read(), '\n\n')
AssertionError: '' != '\n\n'

======================================================================
FAIL: test_separator_with_title_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 62, in test_separator_with_title_success
    self.assertEquals(sys.stdout.read(), line)
AssertionError: '' != '------------------- test ------------------\n'

======================================================================
FAIL: test_separator_without_title_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 68, in test_separator_without_title_success
    self.assertEquals(sys.stdout.read(), line)
AssertionError: '' != '----------------------------------------\n\n'

======================================================================
FAIL: test_show_user_with_fullinfo_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 103, in test_show_user_with_fullinfo_success
    self.assertEquals(sys.stdout.read(), info)
AssertionError: '' != '################ USER INFO ################\nUsername         : testusername\nName             : testname\nEmail            : testemail\nUpload limit     : 0.00\nUpload limit end : 01.01.1970\n'

======================================================================
FAIL: test_show_user_without_fullinfo_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 92, in test_show_user_without_fullinfo_success
    self.assertEquals(sys.stdout.read(), info)
AssertionError: '' != '################ USER INFO ################\nUsername         : testusername\nName             : testname\nEmail            : testemail\n'

======================================================================
FAIL: test_success_message_success (tests.outTest.outTestsWithHackedStdout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/src/geeknote/tests/outTest.py", line 83, in test_success_message_success
    self.assertEquals(sys.stdout.read(), 'success\n')
AssertionError: '' != 'success\n'

----------------------------------------------------------------------
Ran 94 tests in 5.257s

FAILED (failures=17, errors=2)
Test failed: <unittest.runner.TextTestResult run=94 errors=2 failures=17>
error: Test failed: <unittest.runner.TextTestResult run=94 errors=2 failures=17>
@paulrm paulrm changed the title setup.py test failes at OpenSuse as below; setup.py test failes at openSUSE Tumbleweed Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant