Skip to content

AttributeError: 'Module' object has no attribute 'get_marker' #103

@visko-tm

Description

@visko-tm

System Version: macOS 10.14.2

test_calc.py:

from calc import Calc
class TestCalc(object):
    def test_plus(self):
        assert Calc().plus(2, 3) == 5

    def test_minus(self):
        assert Calc().minus(2, 3) == 5

pytest.ini:

[pytest]
rp_uuid = 2596195c-e886-4fac-a107-5751113b7cc2
rp_endpoint = http://localhost:8080
rp_project = test-poc
rp_launch = regression

Error:

platform darwin -- Python 3.7.2, pytest-4.1.1, py-1.7.0, pluggy-0.8.1
rootdir: /Users/visko/PycharmProjects/test-poc, inifile: pytest.ini
plugins: reportportal-1.0.4
collected 2 items
...
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytest_reportportal/listener.py", line 32, in pytest_runtest_protocol
INTERNALERROR>     self.PyTestService.start_pytest_item(item)
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytest_reportportal/service.py", line 200, in start_pytest_item
INTERNALERROR>     'tags': self._get_item_tags(part),
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytest_reportportal/service.py", line 416, in _get_item_tags
INTERNALERROR>     tags = [k for k in item.keywords if item.get_marker(k) is not None
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pytest_reportportal/service.py", line 416, in <listcomp>
INTERNALERROR>     tags = [k for k in item.keywords if item.get_marker(k) is not None
INTERNALERROR> AttributeError: 'Module' object has no attribute 'get_marker'

The test run (launch) is added to RP, but there are no test cases or results added (total 0). It is supposed to be a very simple basic setup.
Could you please check?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions