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

InternalErrors #226

Closed
d2therak opened this issue Jul 11, 2024 · 6 comments
Closed

InternalErrors #226

d2therak opened this issue Jul 11, 2024 · 6 comments

Comments

@d2therak
Copy link

Adding Qase-Python to my local pytest tests causes a ton of InternalError messages. Removing package removes all errors.

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/_pytest/main.py", line 285, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/_pytest/main.py", line 339, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in call
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.traceback)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/_pytest/logging.py", line 807, in pytest_runtestloop
INTERNALERROR> return (yield) # Run all the tests.
INTERNALERROR> ^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/_pytest/main.py", line 364, in pytest_runtestloop
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in call
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_callers.py", line 182, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
INTERNALERROR> raise exc.with_traceback(exc.traceback)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
INTERNALERROR> teardown.throw(outcome._exception)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/_pytest/warnings.py", line 111, in pytest_runtest_protocol
INTERNALERROR> return (yield)
INTERNALERROR> ^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_callers.py", line 167, in _multicall
INTERNALERROR> teardown.throw(outcome._exception)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/_pytest/assertion/init.py", line 176, in pytest_runtest_protocol
INTERNALERROR> return (yield)
INTERNALERROR> ^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/pluggy/_callers.py", line 88, in _multicall
INTERNALERROR> next(wrapper_gen) # first yield
INTERNALERROR> ^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/qase/pytest/plugin.py", line 101, in pytest_runtest_protocol
INTERNALERROR> self.start_pytest_item(item)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/qase/pytest/plugin.py", line 162, in start_pytest_item
INTERNALERROR> self._set_suite(item)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/qase/pytest/plugin.py", line 274, in _set_suite
INTERNALERROR> self._get_suite(item)
INTERNALERROR> File "/opt/homebrew/lib/python3.12/site-packages/qase/pytest/plugin.py", line 285, in _get_suite
INTERNALERROR> title = file_path + '.' + module
INTERNALERROR> ~~~~~~~~~~^~~~~
INTERNALERROR> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

@NickVolynkin
Copy link
Contributor

@d2therak what versions of qase packages do you have?

pip freeze | grep qase

@d2therak
Copy link
Author

qase-api-client==1.0.1
qase-api-v2-client==1.0.0
qase-pytest==6.0.1
qase-python-commons==3.0.3

@gibiw
Copy link
Contributor

gibiw commented Jul 16, 2024

@d2therak can you share information about how you run the tests and the full path to the directory with the tests?

@d2therak
Copy link
Author

Hi there, I am running them via command line IE pytest test_3OutletsTest.py. The full path to directory of tests is /Users/derekrozycki/Desktop/python api automation/test_30OutletsTest.py

gibiw added a commit that referenced this issue Jul 18, 2024
Fix the issue `TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'`

[#226]
gibiw added a commit that referenced this issue Jul 18, 2024
Fix the issue `TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'`

[#226]
gibiw added a commit that referenced this issue Jul 19, 2024
Fix the issue `TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'`

[#226]
@gibiw
Copy link
Contributor

gibiw commented Jul 19, 2024

@d2therak update the package to version 6.0.2

gibiw added a commit that referenced this issue Jul 22, 2024
Fix the issue `TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'`

[#226]
gibiw added a commit that referenced this issue Jul 22, 2024
Fix the issue `TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'`

[#226]
@d2therak
Copy link
Author

Thank you, this appears to have fixed issue. Again thank you for fast turn around on this

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

3 participants