Skip to content

Setup #1

@uv48uson

Description

@uv48uson

Im currently trying to get some very simple python pact examples running. This project seemed to be the most simple one. So i tried it. Unfortunately im not even getting this one to run properly. And im getting very confused by the requirments. what i did was:

downloaded the project
followed the description and did the install & execution
Im getting the folling error

invoke test_consumer
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
rootdir: /home/ubuntu/python-pact-testing-example, inifile:
collected 0 items / 1 errors

==================================== ERRORS ====================================
______________________ ERROR collecting test_consumer.py _______________________
test_consumer.py:11: in <module>
    pact.start_service()
/usr/local/lib/python2.7/dist-packages/pact/pact.py:161: in start_service
    self._process = Popen(command)
/usr/lib/python2.7/subprocess.py:711: in __init__
    errread, errwrite)
/usr/lib/python2.7/subprocess.py:1343: in _execute_child
    raise child_exception
E   OSError: [Errno 2] No such file or directory
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.28 seconds ============================

Now i have a couple of questions:

Do i have to install and run the pact mock service independently or should this be done automatically?
Why does the example fail?
Do i need any additional packages?
Is there a more detailed guideline available? Or is this one even up-to-date?
Is pact python mature enough? Just for simple and demostrative issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions