Skip to content

Commit

Permalink
Test fixups for path traversal/server tests.
Browse files Browse the repository at this point in the history
* Must build frontend for backend tests... (for now).
* Follow ISO spec on Klingon matters.
  • Loading branch information
dokterbob committed Sep 9, 2024
1 parent 0d48f53 commit 54f79d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
- name: Install fastapi ${{ matrix.fastapi-version }}
run: poetry add fastapi@^${{ matrix.fastapi-version}}
working-directory: ${{ env.BACKEND_DIR }}
- uses: ./.github/actions/pnpm-node-install
name: Install Node, pnpm and dependencies.
with:
node-version: 22.7.0
pnpm-version: 9.7.0
pnpm-install-args: --no-frozen-lockfile
- name: Build UI
run: pnpm run buildUi
- name: Run Pytest
run: poetry run pytest --cov=chainlit/
working-directory: ${{ env.BACKEND_DIR }}
2 changes: 1 addition & 1 deletion cypress/e2e/readme/spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('readme_language', () => {
cy.visit('/', {
onBeforeLoad(win) {
Object.defineProperty(win.navigator, 'language', {
value: 'Klingon'
value: 'tlh'
});
}
});
Expand Down

0 comments on commit 54f79d7

Please sign in to comment.