Skip to content

Commit

Permalink
use httpx for post request
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed May 11, 2024
1 parent d5316be commit caa4d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import pytest
import requests
import httpx


@pytest.fixture
Expand Down Expand Up @@ -35,7 +35,7 @@ def create_dataset(
server_url = server_url[:-1]

url = f"{server_url}/api/dataverses/{parent}/datasets"
response = requests.post(
response = httpx.post(
url=url,
headers={"X-Dataverse-key": api_token},
data=open("./tests/fixtures/create_dataset.json", "rb"),
Expand Down

0 comments on commit caa4d36

Please sign in to comment.