reecetech / pactman

Pact management (mocking, generation and verification)
Other
91 stars 37 forks source link

flatten_pacts() in pytest_plugin breaks if the broker URL is misconfigured #67

Open richard-reece opened 5 years ago

richard-reece commented 5 years ago

The symptom is a breakage inside the pytest parametrization code.

filippo-20tab commented 3 years ago

It happens to me too everytime pacts is an empty list, which might simply be due to no pacts being found with the provided tags. This case should not break the test, because, especially at the beginning, you might still not have any pacts associated to certain tags. Maybe an additional tag could be added to the pytest options, to let users decide what should happen in that situation (an error, a warning or nothing at all). I could try and investigate further, even try and make a PR if you prefer.