Skip to content

Commit

Permalink
Fix integration tests2 (#712)
Browse files Browse the repository at this point in the history
Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
magdyksaleh and Ubuntu authored Dec 10, 2024
1 parent 9a63db1 commit 37123f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 3 additions & 0 deletions integration-tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
log_cli=true
log_level=DEBUG
4 changes: 2 additions & 2 deletions integration-tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests==2.32.3
docker==5.0.3
pytest==7.4.0
docker==7.1.0
pytest==7.4.0
2 changes: 1 addition & 1 deletion integration-tests/test_classifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ def test_distilbert_ner():
json={"inputs": "Johnny supports the Golden State Warriors. He lives in London."},
)
response.raise_for_status()
print("RESPONSE FROM CLASSIFICATION: ", response.json())
print("RESPONSE FROM CLASSIFICATION:", response.json())
assert len(response.json()) > 0
4 changes: 0 additions & 4 deletions integration-tests/utils/docker_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
logger = logging.getLogger(__name__)


# def _init_client():
# return docker.from_env()


def _init_client():
try:
client = docker.DockerClient(base_url="unix:///var/run/docker.sock", version="auto")
Expand Down

0 comments on commit 37123f4

Please sign in to comment.