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

Coverage seems to use stderr on 3.x causing tests to fail #93

Closed
snowch opened this issue Jul 6, 2020 · 0 comments
Closed

Coverage seems to use stderr on 3.x causing tests to fail #93

snowch opened this issue Jul 6, 2020 · 0 comments

Comments

@snowch
Copy link
Member

snowch commented Jul 6, 2020

For now the stderr checks have been disabled on 3.x

======================================================================
FAIL: test_get_output_with_invalid_catalog_id (library.catalog_test.TestCLIGet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/home/runner/work/hpecp-python-library/hpecp-python-library/tests/library/catalog_test.py", line 703, in test_get_output_with_invalid_catalog_id
    self.assertEqual(error, expected_stderr)
AssertionError: '/home/runner/work/hpecp-python-library/h[211 chars]ist.' != "'/api/v1/catalog/101' does not exist."
- /home/runner/work/hpecp-python-library/hpecp-python-library/hpecp/client.py:147: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpo6x_o8sm'>
-   config.readfp(codecs.open(config_file, "r", "utf8"))
  '/api/v1/catalog/101' does not exist.

======================================================================
FAIL: test_get_output_with_unknown_exception (library.catalog_test.TestCLIGet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/home/runner/work/hpecp-python-library/hpecp-python-library/tests/library/catalog_test.py", line 731, in test_get_output_with_unknown_exception
    self.assertEqual(stderr, expected_stderr)
AssertionError: '/home/runner/work/hpecp-python-library/hp[227 chars]EBUG' != 'Unknown error. To debug run with env var LOG_LEVEL=DEBUG'
- /home/runner/work/hpecp-python-library/hpecp-python-library/hpecp/client.py:147: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpc5sx8bhc'>
-   config.readfp(codecs.open(config_file, "r", "utf8"))
  Unknown error. To debug run with env var LOG_LEVEL=DEBUG

======================================================================
FAIL: test_get_failed_login (library.cli_test.TestCLIHttpClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.5.9/x64/lib/python3.5/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/home/runner/work/hpecp-python-library/hpecp-python-library/tests/library/cli_test.py", line 244, in test_get_failed_login
    "Could not connect to controller - set LOG_LEVEL=DEBUG to see more detail.\n",
AssertionError: '/home/runner/work/hpecp-python-library/hp[246 chars]l.\n' != 'Could not connect to controller - set LOG[30 chars]l.\n'
- /home/runner/work/hpecp-python-library/hpecp-python-library/hpecp/client.py:147: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpu6g84uk3'>
-   config.readfp(codecs.open(config_file, "r", "utf8"))
  Could not connect to controller - set LOG_LEVEL=DEBUG to see more detail.
@snowch snowch closed this as completed in 1b0831e Jul 6, 2020
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