jadolg / outline-vpn-api

A Python API wrapper for Outline VPN https://getoutline.org/
MIT License
114 stars 30 forks source link

Cannot run test_outline_vpn.py #25

Open Jespway opened 8 months ago

Jespway commented 8 months ago

test setup failed @pytest.fixture def client() -> OutlineVPN: """This generates a client from the credentials provided in the environment"""

  install_log = open("outline-install.log", "r").read()

E FileNotFoundError: [Errno 2] No such file or directory: 'outline-install.log'

test_outline_vpn.py:16: FileNotFoundError

jadolg commented 8 months ago

In order to run the tests you need a running outline server. I usually create a new one every time I run the tests like this: https://github.com/jadolg/outline-vpn-api/blob/ec13b8adcae7345b6e63dff642cc9c859316e5a0/.github/workflows/test.yml#L22