Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 691f305

Browse files
Fix package and tests
1 parent 5b658ad commit 691f305

File tree

8 files changed

+5
-19
lines changed

8 files changed

+5
-19
lines changed

‎.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555
},
5656
// Use 'postCreateCommand' to run commands after the container is created.
57-
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src/backend && pip install -e src",
57+
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src/backend",
5858
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
5959
"remoteUser": "vscode"
6060
}

‎.github/workflows/app-tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
- name: Install app as editable app
5757
run: |
5858
python -m pip install -e src/backend
59-
python -m pip install -e src
6059
- name: Setup local database with seed data
6160
run: |
6261
cp .env.sample .env

‎README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ Since the local app uses OpenAI models, you should first deploy it for the optim
129129
130130
```bash
131131
python3 -m pip install -e src/backend
132-
python3 -m pip install -e src
133132
python ./src/backend/fastapi_app/setup_postgres_database.py
134133
python ./src/backend/fastapi_app/setup_postgres_seeddata.py
135134
```

‎scripts/load_python_env.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ python3 -m venv .venv
55

66
echo 'Installing dependencies from "requirements.txt" into virtual environment (in quiet mode)...'
77
.venv/bin/python -m pip --quiet --disable-pip-version-check install -e src/backend
8-
.venv/bin/python -m pip --quiet --disable-pip-version-check install -e src
98
.venv/bin/python -m pip --quiet --disable-pip-version-check install -r requirements-dev.txt

‎src/backend/__init__.py

Whitespace-only changes.

‎src/pyproject.toml

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

‎tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def create_and_seed_db():
8484
@pytest_asyncio.fixture(scope="session")
8585
async def app(mock_session_env):
8686
"""Create a FastAPI app."""
87-
if not Path("src/static/").exists():
87+
if not Path("src/backend/static/").exists():
8888
pytest.skip("Please generate frontend files first!")
8989
app = create_app(testing=True)
9090
await create_and_seed_db()

‎tests/test_frontend_routes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async def test_index(test_client):
88
"""test the index route"""
99
response = test_client.get("/")
1010

11-
html_index_file_path = "src/static/index.html"
11+
html_index_file_path = "src/backend/static/index.html"
1212
with open(html_index_file_path, "rb") as f:
1313
html_index_file = f.read()
1414

@@ -23,7 +23,7 @@ async def test_favicon(test_client):
2323
"""test the favicon route"""
2424
response = test_client.get("/favicon.ico")
2525

26-
favicon_file_path = "src/static/favicon.ico"
26+
favicon_file_path = "src/backend/static/favicon.ico"
2727
with open(favicon_file_path, "rb") as f:
2828
favicon_file = f.read()
2929

@@ -46,7 +46,7 @@ async def test_assets_non_existent_404(test_client):
4646
@pytest.mark.asyncio
4747
async def test_assets(test_client):
4848
"""test the assets route with an existing file"""
49-
assets_dir_path = "src/static/assets"
49+
assets_dir_path = "src/backend/static/assets"
5050
assets_file_path = os.listdir(assets_dir_path)[0]
5151

5252
with open(os.path.join(assets_dir_path, assets_file_path), "rb") as f:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /