Skip to content

Commit bac2286

Browse files
Removed dead code and moved sample.env to root out of tests
1 parent f031453 commit bac2286

File tree

6 files changed

+5
-93
lines changed

6 files changed

+5
-93
lines changed

.github/workflows/ci_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
- name: Create test env
3636
shell: bash
3737
run: |
38-
cp tests/sample.env tests/.env
39-
sed -i "s|LLMWHISPERER_API_KEY=|LLMWHISPERER_API_KEY=${{ secrets.LLMWHISPERER_API_KEY }}|" tests/.env
38+
cp sample.env .env
39+
sed -i "s|LLMWHISPERER_API_KEY=|LLMWHISPERER_API_KEY=${{ secrets.LLMWHISPERER_API_KEY }}|" .env
4040
4141
- name: Run tox
4242
id: tox

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ includes = ["src"]
6969
package-dir = "src"
7070

7171
[tool.pytest.ini_options]
72-
env_files = ["tests/.env"]
72+
env_files = [".env"]
7373
addopts = "-s"
7474
log_level = "INFO"
7575
log_cli = true
File renamed without changes.

src/unstract/llmwhisperer/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
__version__ = "0.22.0"
22

33
from .client import LLMWhispererClient # noqa: F401
4+
from .client_v2 import LLMWhispererClientV2 # noqa: F401
45

56

6-
def get_sdk_version():
7+
def get_llmw_py_client_version():
78
"""Returns the SDK version."""
89
return __version__

src/unstract/llmwhisperer/client_temp.py

Lines changed: 0 additions & 86 deletions
This file was deleted.

tests/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import os
22

33
import pytest
4-
from dotenv import load_dotenv
54

65
from unstract.llmwhisperer.client import LLMWhispererClient
76
from unstract.llmwhisperer.client_v2 import LLMWhispererClientV2
87

9-
load_dotenv()
10-
118

129
@pytest.fixture(name="client")
1310
def llm_whisperer_client():

0 commit comments

Comments
 (0)