jesserizzo / envoy_reader

MIT License
37 stars 26 forks source link

Add pytest framework #23

Closed gtdiehl closed 3 years ago

gtdiehl commented 4 years ago

This is a starting point to have a testing framework for envoy_reader library. Closes #19

jesserizzo commented 4 years ago

@gtdiehl I'm getting a bunch of errors when I run this locally. An attempt was made to access a socket in a way forbidden by its access permissions. I installed pytest, pytest_asyncio and pytest_httpserver. I'm running python 3.8. Am I missing something?

gtdiehl commented 4 years ago

@jesserizzo I'll take a look at my setup and see if I missed anything.

gtdiehl commented 4 years ago

@jesserizzo I run pytest inside Visual Studio Code. I don't think it's an IDE issue.

The error points to a socket connection..hmmm... Do you have a process running on Port 80? Some webserver? As the simulated HTTPServer will need to use Port 80.