rhevm-qe-automation / pytest_jira

py.test plugin to integrate with JIRA
GNU General Public License v2.0
29 stars 25 forks source link

Plugin is not compatible with pytest 4.0 #96

Closed Horstage closed 5 years ago

Horstage commented 5 years ago
C:\Python36_64\lib\site-packages\pytest_jira.py:79
  C:\Python36_64\lib\site-packages\pytest_jira.py:79: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    jira_run = item.keywords['jira'].kwargs.get('run', jira_run)

C:\Python36_64\lib\site-packages\pytest_jira.py:233
  C:\Python36_64\lib\site-packages\pytest_jira.py:233: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    skip_if = mark.kwargs.get('skipif', True)

C:\Python36_64\lib\site-packages\pytest_jira.py:235
  C:\Python36_64\lib\site-packages\pytest_jira.py:235: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    if len(mark.args) == 0:

C:\Python36_64\lib\site-packages\pytest_jira.py:239
  C:\Python36_64\lib\site-packages\pytest_jira.py:239: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    for arg in mark.args:
Horstage commented 5 years ago

It seems like it's not resolved yet.

C:\Python36_64\lib\site-packages\pytest_jira.py:99
  C:\Python36_64\lib\site-packages\pytest_jira.py:99: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    jira_run = marker.kwargs.get('run', jira_run)

C:\Python36_64\lib\site-packages\pytest_jira.py:268
  C:\Python36_64\lib\site-packages\pytest_jira.py:268: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    skip_if = mark.kwargs.get('skipif', True)

C:\Python36_64\lib\site-packages\pytest_jira.py:270
  C:\Python36_64\lib\site-packages\pytest_jira.py:270: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    if len(mark.args) == 0:

C:\Python36_64\lib\site-packages\pytest_jira.py:274
  C:\Python36_64\lib\site-packages\pytest_jira.py:274: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
  Please use node.get_closest_marker(name) or node.iter_markers(name).
  Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    for arg in mark.args:
lukas-bednar commented 5 years ago

@Horstage what is version of pytest you use ? Or do you know in what version this deprication warning was added ?

Horstage commented 5 years ago

@lukas-bednar I use pytest-3.10.0 Seems like it has been added in pytest-3.7.0 (pytest changelog) Since pytest-4.0.0 these are no longer warnings, but errors

lukas-bednar commented 5 years ago

I see it was already present it 3.6.0, and I don't see it in 3.5.1 so I guess 3.6.0 is one which introduces this deprecation warning.

Horstage commented 5 years ago

Works great! Thanks!