Skip to content

Commit

Permalink
Cleanup - remove observability testcases and fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Apr 16, 2024
1 parent badf758 commit 175878d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 305 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,66 +95,6 @@ async def get_first_user_app(get_first_user_object):
return appvariant, user, app, db_image, db_config, db_base


@pytest.fixture()
def spans_db_data():
return [
{
"parent_span_id": "string",
"meta": {},
"event_name": "call",
"event_type": "fixture_call",
"start_time": str(datetime.now()),
"duration": 8.30,
"status": {"value": "SUCCESS", "error": None},
"end_time": str(datetime.now()),
"inputs": ["string"],
"outputs": ["string"],
"prompt_template": "string",
"tokens_input": 80,
"tokens_output": 25,
"token_total": 105,
"cost": 0.23,
"tags": ["string"],
},
{
"parent_span_id": "string",
"meta": {},
"event_name": "call",
"event_type": "fixture_call",
"start_time": str(datetime.now()),
"duration": 13.30,
"status": {"value": "SUCCESS", "error": None},
"end_time": str(datetime.now()),
"inputs": ["string"],
"outputs": ["string"],
"prompt_template": "string",
"tokens_input": 58,
"tokens_output": 65,
"token_total": 123,
"cost": 0.19,
"tags": ["string"],
},
{
"parent_span_id": "string",
"meta": {},
"event_name": "call",
"event_type": "fixture_call",
"start_time": str(datetime.now()),
"duration": 18.30,
"status": {"value": "SUCCESS", "error": None},
"end_time": str(datetime.now()),
"inputs": ["string"],
"outputs": ["string"],
"prompt_template": "string",
"tokens_input": 100,
"tokens_output": 35,
"token_total": 135,
"cost": 0.54,
"tags": ["string"],
},
]


@pytest.fixture()
def image_create_data():
return {
Expand All @@ -175,27 +115,6 @@ def app_variant_create_data():
}


@pytest.fixture()
def trace_create_data():
return {
"cost": 0.782,
"latency": 20,
"status": "completed",
"token_consumption": 638,
"tags": ["string"],
"start_time": str(datetime.now()),
"end_time": str(datetime.now()),
}


@pytest.fixture()
def feedbacks_create_data():
return [
{"feedback": "thumbs up", "score": 0, "meta": {}},
{"feedback": "thumbs down", "score": 10, "meta": {}},
]


@pytest.fixture(scope="session")
def fetch_templates():
response = httpx.get(f"{BACKEND_API_HOST}/containers/templates/")
Expand Down

This file was deleted.

0 comments on commit 175878d

Please sign in to comment.