Skip to content

failing unit tests (deprecated pytests method invocation) #25

Description

@robdennis
py27 run-test: commands[1] | coverage run --source=ship_it -m py.test tests
============================= test session starts ==============================
platform linux2 -- Python 2.7.14, pytest-4.5.0, py-1.8.0, pluggy-0.11.0
cachedir: /home/travis/build/robdennis/ship_it/.tox/py27/.pytest_cache
rootdir: /home/travis/build/robdennis/ship_it/tests
collected 133 items                                                            
tests/test_full_invocation.py .......FF.                                 [  7%]
tests/test_invoke_fpm.py .................                               [ 20%]
tests/test_manifest.py ................................................. [ 57%]
...............................                                          [ 80%]
tests/test_virtualenv.py ..........................                      [100%]
=================================== FAILURES ===================================
____________ TestCallingTheRightPackaging.test_installing[manifest] ____________
self = <tests.test_full_invocation.TestCallingTheRightPackaging object at 0x7f5f00683a90>
mock_install = <MagicMock name=u'install_package' id='140046006941136'>
request = <FixtureRequest for <Function test_installing[manifest]>>
man_fixture = 'manifest'
    @pytest.mark.parametrize('man_fixture', ['manifest', 'install_manifest'])
    @mock.patch('ship_it.virtualenv.VirtualEnvPackager.install_package')
    def test_installing(self, mock_install, request, man_fixture):
>       the_manifest = request.getfuncargvalue(man_fixture)
tests/test_full_invocation.py:63: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <FixtureRequest for <Function test_installing[manifest]>>
argname = 'manifest'
    def getfuncargvalue(self, argname):
        """ Deprecated, use getfixturevalue. """
        from _pytest import deprecated
    
>       warnings.warn(deprecated.GETFUNCARGVALUE, stacklevel=2)
E       RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue
.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:484: RemovedInPytest4Warning
________ TestCallingTheRightPackaging.test_installing[install_manifest] ________
self = <tests.test_full_invocation.TestCallingTheRightPackaging object at 0x7f5f00683a10>
mock_install = <MagicMock name=u'install_package' id='140046005607120'>
request = <FixtureRequest for <Function test_installing[install_manifest]>>
man_fixture = 'install_manifest'
    @pytest.mark.parametrize('man_fixture', ['manifest', 'install_manifest'])
    @mock.patch('ship_it.virtualenv.VirtualEnvPackager.install_package')
    def test_installing(self, mock_install, request, man_fixture):
>       the_manifest = request.getfuncargvalue(man_fixture)
tests/test_full_invocation.py:63: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <FixtureRequest for <Function test_installing[install_manifest]>>
argname = 'install_manifest'
    def getfuncargvalue(self, argname):
        """ Deprecated, use getfixturevalue. """
        from _pytest import deprecated
    
>       warnings.warn(deprecated.GETFUNCARGVALUE, stacklevel=2)
E       RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue
.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:484: RemovedInPytest4Warning
===================== 2 failed, 131 passed in 1.02 seconds =====================
ERROR: InvocationError for command /home/travis/build/robdennis/ship_it/.tox/py27/bin/coverage run --source=ship_it -m py.test tests (exited with code 1)
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
The command "tox -e $TOX_ENV" exited with 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions