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

failing unit tests (deprecated pytests method invocation) #25

Open
robdennis opened this issue May 21, 2019 · 0 comments
Open

failing unit tests (deprecated pytests method invocation) #25

robdennis opened this issue May 21, 2019 · 0 comments

Comments

@robdennis
Copy link
Owner

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.
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