Skip to content

Commit

Permalink
Small repo fixes and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
maximusunc committed Jul 10, 2023
1 parent 1973630 commit 327ba7f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
__pycache__
data/
examples/
.venv/
.venv/
kgx/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ logs/*
!logs/.gitkeep
*.jar
.env
*.log
*.log
kgx/
Empty file.
3 changes: 2 additions & 1 deletion app/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from datetime import datetime
import json
import logging
from logging import config


class ReasonerLogEntryFormatter(logging.Formatter):
Expand Down Expand Up @@ -73,4 +74,4 @@ def setup_logger():
with open("logging_setup.json", "r") as f:
logging_config = json.load(f)

logging.config.dictConfig(logging_config)
config.dictConfig(logging_config)
5 changes: 2 additions & 3 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
def test_sync_get_appraisal_400():
"""Test calling /query endpoint."""
response = testclient.post(
"/sync_get_appraisal",
"/get_appraisal",
json={"message": {}},
)
response_json = response.json()
assert response_json["status"] == "Rejected"
assert response.status_code == 400

0 comments on commit 327ba7f

Please sign in to comment.