Skip to content

Commit

Permalink
Dropping use of httpbin for external ip
Browse files Browse the repository at this point in the history
  • Loading branch information
hbldh committed Apr 15, 2024
1 parent 43f1245 commit adcd2be
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import random
from typing import Awaitable

import httpx
import pytest
import pytest_asyncio

from bankid.certs import get_test_cert_and_key


@pytest.fixture(scope="session")
def ip_address() -> str:
with httpx.Client() as client:
response = client.get("https://httpbin.org/ip")
return response.json()["origin"].split(",")[0]
return "127.0.0.1"


@pytest.fixture()
Expand Down

0 comments on commit adcd2be

Please sign in to comment.